Last active
January 13, 2022 04:36
-
-
Save joshuawright11/7c9b05db5d3b0cf04f4510d3ecb89e5b to your computer and use it in GitHub Desktop.
Binding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let binding: Binding<Bool>? = ... // Note this is Binding<Bool>? Not Binding<Bool?>. | |
if let binding = binding { // now "unwrapped" to Binding<Bool> | |
SuccessView(binding: binding) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment