SpinButtonPreferences

struct SpinButtonPreferences

Spin button preferences

  • Size

    Declaration

    Swift

    public var size: CGSize
  • Corner radius, default value is 0

    Declaration

    Swift

    public var cornerRadius: CGFloat
  • Corner width, default value is 0

    Declaration

    Swift

    public var cornerWidth: CGFloat
  • Corner color, default value is .clear

    Declaration

    Swift

    public var cornerColor: SFWColor
  • Horizontal offset

    Declaration

    Swift

    public var horizontalOffset: CGFloat
  • Vertical offset

    Declaration

    Swift

    public var verticalOffset: CGFloat
  • Background color, default value is .clear

    Declaration

    Swift

    public var backgroundColor: SFWColor
  • Text Color, default value is .black

    Declaration

    Swift

    public var textColor: SFWColor
  • Disabled text color, default value is .black

    Declaration

    Swift

    public var disabledTextColor: SFWColor
  • Font, default value is .systemFont(ofSize: 16, weight: .semibold)

    Declaration

    Swift

    public var font: SFWFont
  • Initiates a spin button preferences

    Declaration

    Swift

    public init(size: CGSize,
                horizontalOffset: CGFloat = 0,
                verticalOffset: CGFloat = 0)

    Parameters

    size

    Size

    horizontalOffset

    Horizontal offset, default value is 0

    verticalOffset

    Vertical offset, default value is 0

  • Creates text attributes, relative to slice index position

    Declaration

    Swift

    var textAttributes: [NSAttributedString.Key : Any] { get }

    Parameters

    index

    Slice index

    Return Value

    Text attributes