You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Intermodular/Extensions/SwiftUI/Binding++.swift
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -137,14 +137,24 @@ extension Binding {
137
137
)
138
138
}
139
139
140
-
publicstaticfunc boolean<T:Equatable>(_ value:Binding<T?>, equals some:T)->Binding<Bool>where Value ==Bool{
140
+
/// Creates a `Binding<Bool>` that reports whether `binding.wrappedValue` equals a given value.
141
+
///
142
+
/// `binding.wrappedValue` will be set to `nil` only if `binding.wrappedValue` is equal to the given value and the `Boolean` value being set is `false.`
0 commit comments