Hidde van der Ploeg on Nostr: Did anyone find a nice solution for handling the AppStorage when you migrate from the ...
Did anyone find a nice solution for handling the AppStorage when you migrate from the ObservableObject protocol to the Observable macro?
My solution so far has been to remove them and read directly from the defaults, but it's just not as sexy.
Published at
2023-07-11 08:07:47Event JSON
{
"id": "f85b081202ae4f398c8bfc0aec87a6811f14c9fabeda1901afef5d24ab2b6afa",
"pubkey": "cda5a8e762fccd9d847faa1e800b6d2c5aa1f52cc34bde21d5074e41b261780f",
"created_at": 1689062867,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.design/users/hidde/statuses/110694424081107663"
]
],
"content": "Did anyone find a nice solution for handling the AppStorage when you migrate from the ObservableObject protocol to the Observable macro?\n\nMy solution so far has been to remove them and read directly from the defaults, but it's just not as sexy.",
"sig": "6f2c781cd7de89f9b6dfeaaf83e11cfcacae4b6e2c89026921f64e7ca5846efb29f3786a3d42eea7e1f4155b139a464d1269d937ea457599f287487839dd1018"
}