Releases: pointfreeco/swift-navigation
0.6.1
What's Changed
- Made dependencies more explicit in both libraries, by @vincentisambart in https://github.com/pointfreeco/swiftui-navigation/pull/74
New Contributors
- @vincentisambart made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/74
Full Changelog: pointfreeco/swiftui-navigation@0.6.0...0.6.1
0.6.0
What's Changed
-
Warning: The following is a breaking change.
ButtonState
action handlers, for alerts and confirmation dialogs, are now passed an optional action, wherenil
represents dismissal from a button that has no action attached (https://github.com/pointfreeco/swiftui-navigation/pull/71). This allows you to get a callback when an alert is dismissed, which can be helpful for both domain-specific problems, but also for libraries built on top of SwiftUI Navigation, like the Composable Architecture. This means wherever you had an alert or confirmation dialog action handler, you must now handle an additionalnil
case:.alert(unwrapping: self.$destination, case: /Destination.alert) { action in switch action { case .randomize: self.count = .random(in: 0...1_000) case .reset: self.count = 0 + case nil: + break } }
-
Added:
ConfirmationDialogState
now supports async action handlers (https://github.com/pointfreeco/swiftui-navigation/pull/68).Note: async action handlers do not support implicit
ButtonStateAction
animations. If you perform async work in a button state action handler, you must perform any SwiftUI animations explicitly in the handler. -
Fixed: Implicit
ButtonState
animations broke when action handlers became asynchronous. They have been restored for synchronous handlers, and will emit a runtime warning when an animation action is handled asynchronously (https://github.com/pointfreeco/swiftui-navigation/pull/70). -
Infrastructure: doc fixes (thanks @dy-kim, https://github.com/pointfreeco/swiftui-navigation/pull/63; @Jager-yoo ,https://github.com/pointfreeco/swiftui-navigation/pull/64); Standups fixes (thanks @nesium, https://github.com/pointfreeco/swiftui-navigation/pull/66; https://github.com/pointfreeco/swiftui-navigation/pull/67)
New Contributors
- @dy-kim made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/63
- @nesium made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/66
Full Changelog: pointfreeco/swiftui-navigation@0.5.0...0.6.0
0.5.0
What's Changed
- Changed: Alert actions can now be asynchronous (https://github.com/pointfreeco/swiftui-navigation/pull/61).
- Infrastructure: New case study app showing off swift-dependencies (https://github.com/pointfreeco/swiftui-navigation/pull/61).
- Infrastructure: Typo fixes (thanks @Jager-yoo, https://github.com/pointfreeco/swiftui-navigation/pull/60; @john-flanagan, https://github.com/pointfreeco/swiftui-navigation/pull/62).
- Fix typo by @john-flanagan in https://github.com/pointfreeco/swiftui-navigation/pull/62
New Contributors
- @john-flanagan made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/62
Full Changelog: pointfreeco/swiftui-navigation@0.4.5...0.4.6
0.4.5
What's Changed
- Fixed regression:
Binding.case
can rewrite cases again (https://github.com/pointfreeco/swiftui-navigation/pull/54).
Full Changelog: pointfreeco/swiftui-navigation@0.4.4...0.4.5
0.4.4
What's Changed
- Fixed:
ButtonState.init
should not be ambiguous whenaction
is omitted (https://github.com/pointfreeco/swiftui-navigation/pull/49). - Fixed:
SwiftUI.Alert.Button.init
is now passed an empty closure, notnil
, when the action is omitted to prevent disabling the button on older platforms (iOS <15) (thanks @ski-u, https://github.com/pointfreeco/swiftui-navigation/pull/50).
New Contributors
- @ski-u made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/50
Full Changelog: pointfreeco/swiftui-navigation@0.4.3...0.4.4
0.4.3
What's Changed
- Fixed: macOS focus state synchronized with
View.bind
should now synchronize correctly (thanks @tgrapperon, https://github.com/pointfreeco/swiftui-navigation/pull/46). - Infrastructure: Confirmation dialog iPad/popover case study improvement (thanks @Jager-yoo, https://github.com/pointfreeco/swiftui-navigation/pull/38); README improvements (thanks @qmoya, https://github.com/pointfreeco/swiftui-navigation/pull/34); other case study improvements (thanks @Jager-yoo, https://github.com/pointfreeco/swiftui-navigation/pull/42); documentation typo fix (thanks @Shinolr, https://github.com/pointfreeco/swiftui-navigation/pull/43).
New Contributors
- @qmoya made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/34
- @Shinolr made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/43
- @tgrapperon made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/46
Full Changelog: pointfreeco/swiftui-navigation@0.4.2...0.4.3
0.4.2
What's Changed
- Exclude
id
from ButtonState's equatable conformance by @konomae in https://github.com/pointfreeco/swiftui-navigation/pull/33
New Contributors
- @konomae made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/33
Full Changelog: pointfreeco/swiftui-navigation@0.4.1...0.4.2
0.4.1
What's Changed
- Some small fixes by @mbrandonw in https://github.com/pointfreeco/swiftui-navigation/pull/31
Full Changelog: pointfreeco/swiftui-navigation@0.4.0...0.4.1
0.4.0
What's Changed
- Support navigation destinations, alerts, confirmation dialogs, and more! in https://github.com/pointfreeco/swiftui-navigation/pull/28. Read our blog post for more information, and check out the new documentation.
- Fix typos in README and CaseStudies by @Jager-yoo in https://github.com/pointfreeco/swiftui-navigation/pull/30
New Contributors
- @Jager-yoo made their first contribution in https://github.com/pointfreeco/swiftui-navigation/pull/30
Full Changelog: pointfreeco/swiftui-navigation@0.3.0...0.4.0
0.3.0
- Change: Swift tools version has been bumped to 5.5.
- Change:
Switch
will now runtime warn instead of breakpoint when a case is left unhandled. - Change:
NavigationLink
'sonNavigate
anddestination
closures have been flipped. The original order is now deprecated. - Change: Many APIs that required escaping closures no longer do.