var delegate: (any UIToolbarDelegate )? protocol UIToolbarDelegate To create toolbar items, use the UIBar class. To add toolbar items to a toolbar, use the set method.
Toolbar images that represent normal and highlighted states of an item derive from the image you set using the inherited image property from the UIBar class. The toolbar’s tint colors the image.
If you need radio button style controls, use the UITab class instead of UIToolbar.
When the system presents the toolbar with Liquid Glass:
Don’t apply custom backgrounds or appearances to UIToolbar. Instead, let the system determine the background appearance.
Don’t use UIToolbar directly when you present your view controller with a UINavigation. Instead, set toolbar to get system-provided transitions and animations in your toolbar.
By default, the system organizes all of the buttons you provide into one grouping that shares a background in the toolbar. To split buttons into different groupings with separate shared backgrounds, add fixed between buttons to indicate where you want to split the shared background.
For a button that finalizes or completes a task, set the button’s style to UIBar so that the system can avoid visually grouping the button with other buttons.
var delegate: (any UIToolbarDelegate )? protocol UIToolbarDelegate var items: [UIBarButtonItem ]? func setItems ([UIBarButtonItem ]?, animated: Bool) var standardAppearance : UIToolbarAppearance var compactAppearance : UIToolbarAppearance ? var scrollEdgeAppearance : UIToolbarAppearance ? var compactScrollEdgeAppearance : UIToolbarAppearance ? var isTranslucent : Bool CALayerDelegate CVarArg CustomDebugStringConvertible CustomStringConvertible EquatableHashableNSCodingNSObjectProtocol NSTouchBarProvider SendableSendableMetatype UIAccessibilityIdentification UIActivityItemsConfigurationProviding UIAppearanceUIAppearanceContainer UIBarPositioning UICoordinateSpace UIDynamicItem UIFocusEnvironment UIFocusItem UIFocusItemContainer UILargeContentViewerItem UIPasteConfigurationSupporting UIPopoverPresentationControllerSourceItem UIResponderStandardEditActions UITraitChangeObservable UITraitEnvironment UIUserActivityRestoring class UIBarItem class UIBarButtonItem class UIBarButtonItemGroup class UINavigationBar class UISearchBar class UITabBar class UITabBarItem protocol UIBarPositioning protocol UIBarPositioningDelegate UIBarPositioning protocol.