79465101

Date: 2025-02-25 00:09:22
Score: 1.5
Natty:
Report link

I was faced with the same problem and implemented RawRepresentable support, as described in @Evman's answer and it worked fine for me for about a year. But then I was getting warnings/errors about adding protocol support for both a type and protocol that were outside my control. see my question on apple's dev forums: https://developer.apple.com/forums/thread/774437

I ended up creating a structure that contains my dictionary. This met my need of the being usable with the @AppStorage modifier.

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • User mentioned (1): @Evman's
  • User mentioned (0): @AppStorage
  • Low reputation (1):
Posted by: zespri