SliderTick
struct · iOS 26.0+ · SDK 27.1
struct SliderTick<V> where V : BinaryFloatingPointA representation of a tick in a slider, with associated value and optional label. The following example shows a slider bound to the value `percentage`. As the slider updates the `currentValueLabel`. The slider also renders marks at a `0.25` step interval. @State private var percentage = 0.5 Slider(value: $percentage) { Text("Percentage") } currentValueLabel: { Text("\(percentage)%") } ticks: { SliderTickContentForEach( stride(from: 0.0, through: 1.0, by: 0.25).map { $0 }, id: \.self ) { value in SliderTick(value) { label(for: value) } } }
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
SliderTick.init(_:label:)
This protocol needs associated types that cannot yet cross the bridge.