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.
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.