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

    shape

    The ButtonShape to be used by default

    size

    The ButtonSize to be used by default

    variant

    The ButtonVariant to be used by default

  • Returns a new ThemeSpacing instance 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
    ) -> ThemeButtonDefaults

    Parameters

    shape

    Optional override for buttons default shape.

    size

    Optional override for buttons default size.

    variant

    Optional override for buttons default variant.

    Return Value

    A new ThemeSpacing instance with the applied overrides.