MimiFont
public struct MimiFont : Equatable
Object describing a font to use in Mimi components.
-
Font name.
Declaration
Swift
public var name: String { get } -
Font size.
Declaration
Swift
public var size: CGFloat { get } -
Font line spacing.
Declaration
Swift
public var lineSpacing: CGFloat? -
Kern (Letter Spacing).
Declaration
Swift
public var kern: CGFloat? -
The raw
UIFontassociated with the font.Declaration
Swift
public let font: UIFont -
Create a new font.
Declaration
Swift
public init?(name: String, size: CGFloat, lineSpacing: CGFloat? = nil, kern: CGFloat? = nil)Parameters
nameName of the font.
sizeSize to use.
lineSpacingLine spacing to use.
kernKern (Letter Spacing) to use.
-
Create a system font.
Declaration
Swift
public static func systemFont(ofSize size: CGFloat, weight: UIFont.Weight) -> MimiFontParameters
sizeSize of the font.
weightFont Weight.
Return Value
System font.
MimiFont Structure Reference