johnpatrickmorgan / FlowStacks

FlowStacks allows you to hoist SwiftUI navigation and presentation state into a Coordinator
MIT License
854 stars 66 forks source link

Feature/missing feature add to router accent color support #72

Closed slawaDnC closed 7 months ago

slawaDnC commented 9 months ago

If you setup navigation accentColor to you root NavigationView it cannot pass accentColor to next NavigationView if you try to present screens with parameter embedInNavigationView to true. This pull request resolves lib problem with passing navigation accentColor if you present new screen with parameter embedInNavigationView.

You can try the solution on my fork

johnpatrickmorgan commented 7 months ago

Thanks very much @slawaDnC ! I'd prefer a more generic solution so I've added support for any view modifier to be applied to the NavigationView on this branch.

johnpatrickmorgan commented 7 months ago

It's now possible to provide a custom ViewModifier to be applied to all NavigationViews created by the Router- shipped in v 0.4.1.