Post

Replies

Boosts

Views

Activity

How to reverse the bounds parameter of a slider
At the moment, I have this code for my slider: Slider(value: 0.8, in: 0.3...1.3, step: 0.1) How can I reverse the bounds to: Slider(value: 0.8, in: 1.3...0.3, step: 0.1) I tried this and my app crashed with this message: Fatal error: Range requires lowerBound = upperBound Any help would be greatly appreciated :)
3
0
1.6k
May ’21