Christian Selig on Nostr: Silly SwiftUI question: if I use the new @Observable for my view model, can I use ...
Published at
2024-02-06 20:59:37Event JSON
{
"id": "7a41f014a47789e1362184e1530490ab92f444249a1d423b0e097212c3dd1cd2",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1707253177,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/christianselig/statuses/111886544256988839",
"activitypub"
]
],
"content": "Silly SwiftUI question: if I use the new @Observable for my view model, can I use an object from it as a Binding? Say I'm using a Picker to let you select from something, can my view model power that? I can't quite figure out the syntax\n\nGist: https://gist.github.com/christianselig/305d3362d83eaea4fecf214fb4054c9d\n\nhttps://files.mastodon.social/media_attachments/files/111/886/543/963/294/788/original/35674b1fc5184913.png",
"sig": "27c3670102ce8eab876623f5e1886dac95caad7628b57d4e56882032222f7ad1cb20998ac8ca583f01c83cf0cb4bfa168234d35af4ce0dc7aa800cd46c31dbce"
}