Use SF Symbols in AppKit app?

Is there still no way to use SF symbols in an appkit app (with NSImage)?

Answered by in 615213022

Not according to the Design page of the developpers website. It's for iOS 13, tvOS 13 and watchOS 6. But the symbols are exportable from the SF Symbols app as svg which can be edited (or not if you find one that fits your needs as-is) with an graphic desing app. Note that for macOS you would only use one of the embedded symbol (SF Symbols are a little bit like fonts, they contain different sizes and thickness of the same image) which you could export as a 1x pdf and let the system automatically scale it for retina displays.


That's the only workaround I can think of.

Accepted Answer
Yes, in macOS Big Sure you can initialize an NSImage using init(systemSymbolName:accessibilityDescription:). To learn more about using SF Symbols in macOS, checkout the session "Adopt the new look of macOS".
In Big Sur beta 3 the new NSImage API for symbols is working.
Use SF Symbols in AppKit app?
 
 
Q