Let minValue = UInt8.min // minValue is equal to 0, and is of type UInt8
let maxValue = UInt8.max // maxValue is equal to 255, and is of type UInt8
You can access the minimum and maximum values of each integer type with its min and max properties.
Additional information
- The values of these properties are of the appropriate-sized number type and can therefore be used in expressions alongside other values of the same type.