UIStepper can't reach min/max value

When I build my project with Xcode 26 the following code makes the stepper decrement option disabled:

stepper.stepValue = 0.5
stepper.value = 1.0
stepper.minimumValue = 0.7
stepper.maximumValue = 4.0

I think the reason for this is that the (value - stepValue) goes bellow the minimumValue. But on all iOS versions before iOS 26 this made the decrement option enabled and it clamped the value to the minimumValue. The same issue can be reproduced for the maximumValue. Does anyone else have the same issue? Do we need to adjust the stepValue based on the current value?

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.

UIStepper can't reach min/max value
 
 
Q