Is there a constant for the maximum CGFloat value? Is there a constant for the maximum CGFloat value? ios ios

Is there a constant for the maximum CGFloat value?


For those using Swift 2, you should use:

CGFloat.max

For those using Swift 3, you should use:

CGFloat.greatestFiniteMagnitude

Note that CGFloat.max was removed when Swift 3 came out, as reflected in the documentation.