Christian Selig on Nostr: Another Swift @​Observable question 😛 How do I make a UIViewRepresentable ...
Published at
2024-04-05 14:26:00Event JSON
{
"id": "9c659fb8b53249e5bbecd87641e6f8bf38d6ed01ac72422e5cb5053a58f0b525",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1712327160,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/christianselig/statuses/112219072785531318",
"activitypub"
]
],
"content": "Another Swift @​Observable question 😛 How do I make a UIViewRepresentable receive updates when I *completely replace* the View Model? The parent view sees the change, but I can't figure out how to propagate it into the UIViewRepresentable\n\nExample code: https://gist.github.com/christianselig/7b56623a09916faf47cd26eabc67dbb0\n\nhttps://files.mastodon.social/media_attachments/files/112/219/072/531/401/572/original/1b068e2d4fe15a08.jpeg",
"sig": "9c93ede3c0d808f2da363adf192a3f6d27220f97e3a855c6fccfbec0dd6b79ec731c9de608bca3bbee10514a7b662e283cadc67289cb1019f6f3f61e746bf740"
}