BPKNudger

public struct BPKNudger : View
  • Creates a BPKNudger.

    Declaration

    Swift

    public init(value: Binding<Int>, min: Int, max: Int, step: Int = 1)

    Parameters

    value

    The value of the BPKNudger. Must be between min and max. If changed, the value will be clamped to be between min and max.

    min

    The minimum value of the BPKNudger. Must be less than max.

    max

    The maximum value of the BPKNudger. Must be greater than min.

    step

    The step value of the BPKNudger. Defaults to 1.

  • Creates a BPKNudger.

    Declaration

    Swift

    public init(
        title: String,
        subtitle: String? = nil,
        icon: BPKIcon? = nil,
        value: Binding<Int>,
        min: Int,
        max: Int,
        step: Int = 1
    )

    Parameters

    title

    The value of the BPKNudger title label

    subtitle

    The value of the BPKNudger subtitle label Optional, when not set, the title will vertically center

    icon

    An optional icon

    value

    The value of the BPKNudger. Must be between min and max. If changed, the value will be clamped to be between min and max.

    min

    The minimum value of the BPKNudger. Must be less than max.

    max

    The maximum value of the BPKNudger. Must be greater than min.

    step

    The step value of the BPKNudger. Defaults to 1.

  • Declaration

    Swift

    public var body: some View { get }
  • Declaration

    Swift

    func accessibilityPrefix(_ prefix: String?) -> BPKNudger