Skip to content

Commit 46acf5e

Browse files
authored
Allow Binding<Case?> to write into nil (pointfreeco#54)
Fixes pointfreeco#53.
1 parent 949a906 commit 46acf5e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/SwiftUINavigation/Binding.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ extension Binding {
5959
.init(
6060
get: { self.wrappedValue.flatMap(casePath.extract(from:)) },
6161
set: { newValue, transaction in
62-
guard self.wrappedValue != nil else { return }
6362
self.transaction(transaction).wrappedValue = newValue.map(casePath.embed)
6463
}
6564
)

0 commit comments

Comments
 (0)