Skip to main content
Enumeration A CSS length, such as a font size, a corner radius, or a spacing unit.
Use CheckoutLength.px(_:), CheckoutLength.rem(_:), or CheckoutLength.em(_:) for the common units. Use CheckoutLength.custom(_:) for a different CSS value. A number literal is a length in CSS pixels, so 12 is the same as .px(12). In the checkout, one CSS pixel is one point.

Enumeration Cases

Initializers

init(floatLiteral:)

Creates a length in CSS pixels from a floating-point literal.

init(from:)

Inherited from Decodable.init(from:).

init(integerLiteral:)

Creates a length in CSS pixels from an integer literal.

Instance Methods

encode(to:)

Inherited from Encodable.encode(to:).