Simplifications + StackTabBarToolbarBehavior
Release Notes
🚀 New Features:
This release simplifies children binding, makes message listening clearer, and introduces StackTabBarToolbarBehavior
.
⚠️ Breaking Changes:
NavigationNodeState
:
Instead of using the getter for publishers:Use the getter for nodes:public override var childrenPublishers: [any Publisher<[NavigationNode], Never>] { super.childrenPublishers + [$tabs.map { $0.map { $0.node } }] }
public override var children: [any NavigationNode] { super.children + tabs.map(\.node) }
TabsRootNavigationNodeState
:
When initializing, pass the ID to theselectedTabNodeID
argument instead of passing the whole node.
🔧 Changes:
- Simplified children binding logic
- Simplified
TabsRootNavigationNodeState
initialization - Added
StackTabBarToolbarBehavior
to control tab bar toolbar behavior - Added
onMessageReceived(_:)
, which simplifies the syntax for listening to messages