1.4.0
What's Changed
-
Added
sheet(item:id:)
and other modifiers for presenting a non-identifiable item using a key path to some identity, instead (https://github.com/pointfreeco/swiftui-navigation/pull/155). This API is inspired byForEach
's overload that takes anid
key path..sheet(item: $fact, id: \.self) { fact in Text(fact) }
-
Added
sheet(item:)
andsheet(item:id:)
, etc., overloads that are passed a binding to an unwrapped item (https://github.com/pointfreeco/swiftui-navigation/pull/157, https://github.com/pointfreeco/swiftui-navigation/pull/158). These APIs are meant to replace the existingsheet(unwrapping:)
APIs, which have been deprecated. -
Fixed: Don't allow case navigation binding to write over non-matching cases (https://github.com/pointfreeco/swiftui-navigation/pull/149).
-
Fixed: Silence deprecation warning (https://github.com/pointfreeco/swiftui-navigation/pull/153).
-
Infrastructure: Leverage
alert(item:)
inalert(_ state:)
(https://github.com/pointfreeco/swiftui-navigation/pull/156); update DocC (https://github.com/pointfreeco/swiftui-navigation/pull/158).
Full Changelog: pointfreeco/swiftui-navigation@1.3.0...1.4.0