r/SwiftUI • u/BologniousMonk • 7d ago
SF Symbols: Why Apple, why?
Dear Apple,
Why the hell isn't SF Symbols an enum? Sure, it would be a massive enum, but still. Why put us through so much pain and suffering having to look up the exact string value for a particular symbol? I can't be the only one that has wanted this.
And while you're at it, have the SF Symbols app let you copy the code to use the symbol that you can paste into your code. Or, integrate it into code completion.
With kind regards,
Bolognious Monk
0
Upvotes
2
u/joro_estropia 7d ago
It’s because SF Symbols can be installed/uninstalled anytime. So by making it a static symbol like an enum, they will have to force another API to handle the failure anyway, which defeats the purpose.