How to limit a variable in Swift

No Clamping in the Swift Standard Library?!

Follow me, and we’ll put a vise on a variable!