Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to Not bool bindng swiftui

prefix func ! (value: Binding<Bool>) -> Binding<Bool> {
    Binding<Bool>(
        get: { !value.wrappedValue },
        set: { value.wrappedValue = !$0 }
    )
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Not #bool #bindng #swiftui
ADD COMMENT
Topic
Name
9+1 =