Why Nostr? What is Njump?
2024-03-28 14:55:52

Christian Selig on Nostr: Silly SwiftUI @​Observable question: how do I bind to an unwrapped optional? Say I ...

Silly SwiftUI @​Observable question: how do I bind to an unwrapped optional? Say I want to show a View when an optional is non-nil, and then bind to a variable it contains? Or is this not possible? I've tried sprinkling @​Bindable 🤔

Code: https://gist.github.com/christianselig/4b835f6544ffe1c5c104ade74da8459e

Author Public Key
npub1me4dmfx38938e68eeuz77f78e5w7nz2nv0jlxqmx0amphmp3sutq6s0ues