init(size:)
Initializes and returns a rectangular region of the specified size.
Declaration
init(size: CGSize)Parameters
- size:
The size of the region, specified in points.
Return Value
A rectangular region of the specified size.
Discussion
The center of the rectangle is the origin of the region’s coordinate system.