Skip to content

Simplifications + StackTabBarToolbarBehavior

Compare
Choose a tag to compare
@RobertDresler RobertDresler released this 30 Jan 19:43
· 39 commits to main since this release
27196e8

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:
    public override var childrenPublishers: [any Publisher<[NavigationNode], Never>] {
        super.childrenPublishers + [$tabs.map { $0.map { $0.node } }]
    }
    Use the getter for nodes:
    public override var children: [any NavigationNode] {
        super.children + tabs.map(\.node)
    }
  • TabsRootNavigationNodeState:
    When initializing, pass the ID to the selectedTabNodeID 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