johnpatrickmorgan / FlowStacks

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

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

Closed slawaDnC closed 6 months ago

slawaDnC commented 7 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 6 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 6 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.