Üzerinde arttırma ve azaltma aksiyonları almamıza yarayan bileşendir.
struct LabView: View { @State var sliderValue: Float = 0 var body: some View { VStack(spacing: 16) { Stepper("Boundless Stepper", value: $sliderValue) Stepper( "Limited Stepper: -10...10", value: $sliderValue, in: -10...10 ) Stepper( "Limited Stepper: -10...10 with step: 2", value: $sliderValue, in: -10...10, step: 2 ) Text("\(sliderValue, specifier: "%.2f")").font(.largeTitle) }.padding() } }
Last updated 4 years ago
Was this helpful?