Skip to main content

SwiftUI Toolbar Features

Quick Reference

Customizable Toolbars

Basic Setup

Spacer Types

Search Integration

Minimize Behavior

Placement Options

Common Placements

Large Subtitle

Visual Effects

Matched Transitions

Background Visibility

System Items

Default Items

Platform Considerations

iOS/iPadOS

macOS

Common Patterns

Dynamic Toolbar

Grouped Actions

Contextual Items

Best Practices

  1. Unique IDs: Use meaningful identifiers for customizable items
  2. Logical Groups: Use spacers to group related actions
  3. Platform Awareness: Test on all target platforms
  4. Consistent Placement: Follow platform conventions
  5. Minimal Items: Avoid overcrowding toolbars

Troubleshooting

References