TinkMoneyManagerUI Documentation Beta

Class Font​Provider

public class FontProvider: FontProviding

A type that can provide custom fonts for Tink views.

FontProvider FontProvider FontProviding FontProviding FontProvider->FontProviding

Conforms To

FontProviding

A type that can provide fonts for Tink views.

Initializers

init()

public init()

init(light​Font:​regular​Font:​semi​Bold​Font:​bold​Font:​)

public init(lightFont: Font, regularFont: Font, semiBoldFont: Font, boldFont: Font)

Initializes a appearance provider with the specified styling.

Parameters

light​Font Font

The light font to use.

regular​Font Font

The regular font to use.

semi​Bold​Font Font

The semibold font to use.

bold​Font Font

The bold font to use.

Properties

light​Font

var lightFont: Font = .systemDefault

Light font.

regular​Font

var regularFont: Font = .systemDefault

Regular font.

semi​Bold​Font

var semiBoldFont: Font = .systemDefault

Semibold font.

bold​Font

var boldFont: Font = .systemDefault

Bold font.

Methods

font(for:​)

public func font(for weight: Font.Weight) -> Font

Returns the Font to use based on the weight provided.

Parameters

weight Font.​Weight

The weight of the font that is asked for.