CrossmintEmbeddedCheckout.
variables for the global look. Set rules for per-element overrides. A rule has priority over a variable for the element it targets.
Initializers
init(from:)
Inherited fromDecodable.init(from:).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Swift Structure
CrossmintEmbeddedCheckout.
struct CheckoutAppearance
variables for the global look. Set rules for per-element overrides. A rule has priority over a variable for the element it targets.
let appearance = CheckoutAppearance(
variables: CheckoutAppearanceVariables(
colors: CheckoutVariablesColorStyle(accent: "#0066FF")
),
rules: CheckoutAppearanceRules(
primaryButton: CheckoutPrimaryButtonRule(borderRadius: "12px")
)
)
Decodable.init(from:).
init(from decoder: any Decoder) throws
init(variables: CheckoutAppearanceVariables? = nil, rules: CheckoutAppearanceRules? = nil)
| Property | Type | Description |
|---|---|---|
rules | CheckoutAppearanceRules? | The per-element style overrides. |
variables | CheckoutAppearanceVariables? | The global style variables. |
Was this page helpful?
