Contents

object(forKey:)

Returns the font attribute that the corresponding key specifies.

Declaration

func object(forKey anAttribute: UIFontDescriptor.AttributeName) -> Any?

Parameters

  • anAttribute:

    The font attribute key.

Return Value

The font attribute corresponding to anAttribute. For valid values of anAttribute, see UIFontDescriptor.AttributeName.

See Also

Querying a font descriptor