Thanks for letting me know you also see this. Here's the feedback assistant link: https://feedbackassistant.apple.com/feedback/15523685
Post
Replies
Boosts
Views
Activity
Hi Claude,
This sounds encouraging. My current theory is that willSet/didSet works for @AppStorage var's in View's but not for @AppStorage var's in other types of objects (eg, in my case, a class)
I will investigate this tomorrow morning, and report back with a more complete code snippet.
thx :-)
Thanks @Claude31 This is likely what I'll have to do. The problem is that .onChange (I believe) is typically used in the body var of a View. my WordsManager is a class.
Is it possible to use .onChange in something like my singleton class? (my current understanding is this is not possible.)
Thanks for the suggestion @ssmith_c . Unfortunately, I haven't been able to create an AppStorage var with a custom setter that the compiler likes. Definitely open to suggestions...
Hi @interferon , sadly didSet does not appear to be getting called on any of my AppStorage vars
Wonderful. Thanks very much for this very helpful answer :-)
I ended up doing a two step decode:
decode to a [String: Localization] dictionary
use the step 1 dictionary to create a [Language: Localization] dictionary
https://feedbackassistant.apple.com/feedback/13518421
Hello gchiste,
your assumption is correct. I was referring to a "Photo Editing Extension" I still do not see my extension when I follow the above steps, however I do see it when I follow these steps:
run my new 'empty' PhotoEditingExtension target in an iOS simulator
select photos as the app to run
open a photo
tap 'Edit'
tap the ... button in the Edit view
Following the above steps no a physical device I don't see my extension in the Options bottom sheet :-(