Looks like the ticks parameter is now exposed in beta4. An example from the Apple headers:
@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)
}
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: