Releases: johnpatrickmorgan/FlowStacks
Releases · johnpatrickmorgan/FlowStacks
v0.7.0
v0.6.0
This is a major new release that includes a lot of breaking changes. This rewrite has been discussed here - #51.
Changes:
- Rewrites APIs to match the latest
NavigationStack
APIs. This package now takes SwiftUI's familiar and powerfulNavigationStack
API and gives it superpowers. The newFlowStack
is not just for push navigation, but also for presenting sheets and full-screen covers. And because it's implemented using the navigation APIs available in older SwiftUI versions, you can still use it on earlier versions of iOS, tvOS, watchOS and macOS.
v0.4.0
v0.3.8
v0.3.2
- Adds a FlowNavigator environment object for easier navigation from deeply nested views.
v0.3.1
- Fix dismiss completion for iOS 14.4 and below (Thanks @BohdanDatskiv!)
V0.2.4
V0.2.2
- Ensures
Binding.withDelaysIfUnsupported
runs on the main thread. (Thanks @ConfusedVorlon)
V0.2.1
V0.1.0
- Presentation and navigation can now be combined into a single routes array, removing the need for separate
PStack
andNStack
. The newRouter
can handle both. - Convenience methods are now extensions on Array, with no more need for
NFlow
orPFlow
, simplifying state management. - Large-scale navigation updates can now be made within a
withDelaysIfUnsupported
call, and will be broken down into smaller updates that SwiftUI supports. This works around a limitation in SwiftUI that only allows one screen to be pushed, presented or dismissed at a time. - The view builder closure for creating screens can now provide a binding to the screen so that screens can mutate their state within the routes array.
- A new showing function makes it easy to have a fixed root screen which shows zero or more routes.