Code:
import SwiftUI
struct ContentView: View {
@State private var testValue: Double = 0
var body: some View {
VStack {
Slider(value: $testValue,in:-100...100, step:1)
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
hm Also das ist schon
Standart verhalten von Slidern in iOS.