Global Variable

CGFLOAT_MAX

Declaration

iOS, macOS, Mac Catalyst, tvOS
var CGFLOAT_MAX: Double { get }
watchOS
var CGFLOAT_MAX: Float { get }

Discussion

The maximum non-infinite value for a CGFloat type. For 32-bit code, this value is 3.40282347e+38F. For 64-bit code, it is 1.7976931348623157e+308.