Answers for "swiftui binding bool not"

0

how to Not bool bindng swiftui

prefix func ! (value: Binding<Bool>) -> Binding<Bool> {
    Binding<Bool>(
        get: { !value.wrappedValue },
        set: { value.wrappedValue = !$0 }
    )
}
Posted by: Guest on January-14-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language