BPKNudger
public struct BPKNudger : View
-
Creates a
BPKNudger.Declaration
Swift
public init(value: Binding<Int>, min: Int, max: Int, step: Int = 1)Parameters
valueThe value of the
BPKNudger. Must be betweenminandmax. If changed, the value will be clamped to be betweenminandmax.minThe minimum value of the
BPKNudger. Must be less thanmax.maxThe maximum value of the
BPKNudger. Must be greater thanmin.stepThe step value of the
BPKNudger. Defaults to1. -
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
titleThe value of the
BPKNudgertitle labelsubtitleThe value of the
BPKNudgersubtitle label Optional, when not set, the title will vertically centericonAn optional icon
valueThe value of the
BPKNudger. Must be betweenminandmax. If changed, the value will be clamped to be betweenminandmax.minThe minimum value of the
BPKNudger. Must be less thanmax.maxThe maximum value of the
BPKNudger. Must be greater thanmin.stepThe step value of the
BPKNudger. Defaults to1. -
Declaration
Swift
public var body: some View { get } -
Declaration
Swift
func accessibilityPrefix(_ prefix: String?) -> BPKNudger