SFSymbol
Representation of a SF symbol.
SF symbols are Apple’s configurable icons that are designed to look great with the San Francisco font.
Symbols are referenced by their name. You can find the symbol names in Apple’s SF Symbols app for macOS. You can also browse symbol names in the SF Symbols Browser and San Fransymbols apps for iOS.
Properties
Section titled “Properties”Convert the symbol to an image.
image: ImageRead-only.
Methods
Section titled “Methods”
applyBlackWeight()
Section titled “applyBlackWeight()”Configures the symbol to use an black weight.
applyBlackWeight()
applyBoldWeight()
Section titled “applyBoldWeight()”Configures the symbol to use an bold weight.
applyBoldWeight()
applyFont(font)
Section titled “applyFont(font)”Configures the symbol with the specified font information.
applyFont(font: Font)Parameters
Section titled “Parameters”font Font
applyHeavyWeight()
Section titled “applyHeavyWeight()”Configures the symbol to use an heavy weight.
applyHeavyWeight()
applyLightWeight()
Section titled “applyLightWeight()”Configures the symbol to use an light weight.
applyLightWeight()
applyMediumWeight()
Section titled “applyMediumWeight()”Configures the symbol to use an medium weight.
applyMediumWeight()
applyRegularWeight()
Section titled “applyRegularWeight()”Configures the symbol to use an regular weight.
applyRegularWeight()
applySemiboldWeight()
Section titled “applySemiboldWeight()”Configures the symbol to use an semibold weight.
applySemiboldWeight()
applyThinWeight()
Section titled “applyThinWeight()”Configures the symbol to use an thin weight.
applyThinWeight()
applyUltraLightWeight()
Section titled “applyUltraLightWeight()”Configures the symbol to use an ultra light weight.
applyUltraLightWeight()
named(symbolName)
Section titled “named(symbolName)”Constructs a SF symbol.
static named(symbolName: string): SFSymbolSF symbols are Apple’s configurable icons that are designed to look great with the San Francisco font.
Symbols are referenced by their name. You can find the symbol names in Apple’s SF Symbols app for macOS. You can also browse symbol names in the SF Symbols Browser and San Fransymbols apps for iOS.
Parameters
Section titled “Parameters”symbolName string
Name of the symbol.
Return value
Section titled “Return value”SFSymbol
Constructed SF symbol or null if no symbol with the name exists.