Skip to content

v0.4.0

Latest

Choose a tag to compare

@lynnswap lynnswap released this 27 Nov 10:48
fc0fd9f

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.

Full changelog