Post

Replies

Boosts

Views

Activity

Comment on To pass Bool value in an enum variable of type someView
i'm not Quinn, but I'd say what I think. The expression is a closure passed in the set: parameter of the initialiser. You need to pass a closure that takes a newValue parameter (of the T type as in Binding, which here is Bool) as input, and set it to whatever other variable you use. You use another variable to store the binding's actual value, and this value is of type MyBool.
Apr ’23