How do I use SF symbols in my Core Data model?

I want to be able to have my iOS app use SF symbols and store them in my Entity attribute in my Core Data model. I’m guessing I need to use the binary data attribute type because SF symbols are displayed using an Image view. I’m looking for a way to take an SF symbol from a SwiftUI view and store it in the Core Data Model. I also want to be able to retrieve that stored entity attribute from my Core Data model and display it in any SwiftUI views I might choose.

How can I do this?

Answered by Frameworks Engineer in 678653022

You can store the symbol name as a string or covert the symbol to an image and save it as a binary / transformable attribute.

Accepted Answer

You can store the symbol name as a string or covert the symbol to an image and save it as a binary / transformable attribute.

How do I use SF symbols in my Core Data model?
 
 
Q