Skip to content

Instantly share code, notes, and snippets.

@joshuawright11
Last active January 13, 2022 04:36
Show Gist options
  • Save joshuawright11/7c9b05db5d3b0cf04f4510d3ecb89e5b to your computer and use it in GitHub Desktop.
Save joshuawright11/7c9b05db5d3b0cf04f4510d3ecb89e5b to your computer and use it in GitHub Desktop.
Binding
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