I checked and got the same behaviour, in 18.4 and 26.0.
It may well be an intended behaviour.
In fact, with the 18.4 behaviour, once you reach 0.7 and then step up, you get 1.2 and not the original value of 1.0.
Which may cause problem as it may be hard to find back this 1.0 value.
So effectively, we have now to implement it in code. Problem is that down stepper is disabled when you hit 1.0.
2 possible workarounds:
set stepper behaviour as wrap (not ideal)
set minimum to 0.5 and manually adjust in IBAction to limit to 0.7:
if value < 0.7, set to 0.7
if value is between 1.1 and 1.3 (0.7 + 0.5 when you step up back from 0.7), set to 1.0
Not ideal, but I've not found a better way.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: