Global Variable

CGFLOAT_MAX

Declaration

iOS, macOS, UIKit for Mac, 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software