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 betweenmin
andmax
. If changed, the value will be clamped to be betweenmin
andmax
.min
The minimum value of the
BPKNudger
. Must be less thanmax
.max
The maximum value of the
BPKNudger
. Must be greater thanmin
.step
The 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
title
The value of the
BPKNudger
title labelsubtitle
The value of the
BPKNudger
subtitle label Optional, when not set, the title will vertically centericon
An optional icon
value
The value of the
BPKNudger
. Must be betweenmin
andmax
. If changed, the value will be clamped to be betweenmin
andmax
.min
The minimum value of the
BPKNudger
. Must be less thanmax
.max
The maximum value of the
BPKNudger
. Must be greater thanmin
.step
The step value of the
BPKNudger
. Defaults to1
. -
Declaration
Swift
public var body: some View { get }
-
Declaration
Swift
func accessibilityPrefix(_ prefix: String?) -> BPKNudger