Font
public struct Font : Equatable
Describes the appearance of fonts in PaymentSheet
-
Creates a
PaymentSheet.Appearance.Font
with default valuesDeclaration
Swift
public init()
-
The scale factor for all font sizes in PaymentSheet. Font sizes are multiplied by this value before being displayed. For example, setting this to 1.2 increases the size of all text by 20%.
Note
This value must be greater than 0. The default value is 1.0.Note
This is used in conjunction with the Dynamic Type accessibility text size.Declaration
Swift
public var sizeScaleFactor: CGFloat { get set }
-
The font family of this font is used throughout PaymentSheet. PaymentSheet uses this font at multiple weights (e.g., regular, medium, semibold) if they exist.
Note
The size and weight of the font is ignored. To adjust font sizes, seesizeScaleFactor
.Declaration
Swift
public var base: UIFont