You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
FloatingAccessoryKit v0.4.0
New Features
Pass bar button items to floatingAccessoryController.setItems(_:primaryItem:position:animated:) to show them beside a horizontal tab bar. Items can use a standard action, a menu, or a custom view.
Set TabBarAccessoryController.followsVerticalTabBar before first accessing the controller to make the accessory follow a vertical tab bar. On iOS 27.1 and later, apps built with Xcode 27.2 or later can show the primary item in the vertical system bar and group the remaining actions in a menu. Custom accessory views can read traitCollection.floatingAccessoryAxis to adapt their layout.
For a screen without a tab bar, use setFloatingAccessoryItems(_:primaryItem:placement:animated:) on the view controller. In compact width or with a hidden navigation bar, the items appear in the toolbar. In regular width, the primary action appears in the navigation bar and the others go into its overflow menu. Choose .toolbar to keep the actions in the toolbar at any width.
Set floatingAccessoryController.preservesTabBarWidth to keep a horizontal tab bar at its natural width while an accessory is visible on supported iOS 26 and later configurations.