toolbars

Implement and customize SwiftUI toolbars with ToolbarItem and .searchable.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/mazicimert/RunDom --skill toolbars-mazicimert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: toolbars
Source: https://github.com/mazicimert/RunDom/tree/main/.claude/skills/swiftui/toolbars
Command: npx skills add https://github.com/mazicimert/RunDom --skill toolbars-mazicimert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SwiftUI toolbars patterns and guidance help developers implement modern, customizable toolbars across Apple platforms, including search integration and platform-aware behavior, reducing boilerplate and UX inconsistencies.

Core Features & Use Cases

  • Customizable toolbars: Use .toolbar(id:) with ToolbarItem(id:) to create dynamic toolbars that users can personalize.
  • Search integration & placement: Integrate search via .searchable() and reposition it with .searchToolbarBehavior.
  • Platform-aware patterns: Address iOS vs macOS toolbar expectations, including placements like bottomBar and largeSubtitle.
  • Practical scenarios: Build apps with customizable toolbars for productivity, note-taking, or content editing.

Quick Start

Add a toolbar to a SwiftUI view and customize items using ToolbarItem and .toolbar to create an adaptive, platform-aware toolbar.

Frequently Asked Questions about toolbars

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a customizable toolbar to a SwiftUI view?

Add a SwiftUI toolbar using the `.toolbar(id:)` modifier with `ToolbarItem(id:)` to create dynamic toolbars that users can personalize across iOS and macOS platforms.

How do I integrate search into a SwiftUI toolbar?

Integrate SwiftUI search using the `.searchable()` modifier and reposition the search field within the toolbar using `.searchToolbarBehavior` to control its placement and behavior.

Can I use SwiftUI toolbars for both iOS and macOS apps?

Yes, SwiftUI toolbars support platform-aware patterns, allowing you to address iOS vs macOS toolbar expectations with specific placements like bottomBar and largeSubtitle for cross-platform behavior.

What is the best way to create dynamic toolbars in SwiftUI for productivity apps?

Build customizable SwiftUI toolbars for productivity apps using `.toolbar(id:)` and `ToolbarItem` to support user personalization, search integration, and platform-specific placements without UX inconsistencies.

Why does my SwiftUI toolbar placement look different on macOS?

SwiftUI toolbar placements differ across platforms; use platform-aware patterns and specific placements like largeSubtitle to ensure macOS toolbars meet desktop UX expectations rather than defaulting to iOS layouts.

Does SwiftUI support custom toolbar items with matched transitions?

Yes, SwiftUI supports custom toolbar items and transitions using related modifiers like `.matchedTransitionSource` alongside `.toolbar` and `ToolbarItem` to enhance navigation and cross-platform customization.