Type Alias

CGFloat

The basic type for all floating-point values.

Declaration

iOS, macOS, UIKit for Mac, tvOS
typedef double CGFloat;
watchOS
typedef float CGFloat;

See Also

Geometry

NSPoint

A point in a Cartesian coordinate system.

NSSize

A two-dimensional size.

NSRect

A rectangle.

NSAffineTransform

A graphics coordinate transformation.

NSEdgeInsets

A description of the distance between the edges of two rectangles.

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