ThemeButtonDefaults
public struct ThemeButtonDefaults
Undocumented
-
The default configuration for light mode
Declaration
Swift
public static let defaultLight: ThemeButtonDefaults -
The default configuration for dark mode
Declaration
Swift
public static let defaultDark: ThemeButtonDefaults -
Initialize a new button configuration
Declaration
Swift
public init(shape: ButtonShape, size: ButtonSize, variant: ButtonVariant)Parameters
shapeThe
ButtonShapeto be used by defaultsizeThe
ButtonSizeto be used by defaultvariantThe
ButtonVariantto be used by default -
Returns a new
ThemeSpacinginstance by copying the current one and applying the specified overrides.Only the parameters you pass will be changed; others retain their original values.
Declaration
Swift
func copy( shape: ButtonShape? = nil, size: ButtonSize? = nil, variant: ButtonVariant? = nil ) -> ThemeButtonDefaultsParameters
shapeOptional override for buttons default shape.
sizeOptional override for buttons default size.
variantOptional override for buttons default variant.
Return Value
A new
ThemeSpacinginstance with the applied overrides.