init(x:y:width:height:)
Creates a rectangle with the specified coordinates.
Declaration
init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat)Parameters
- x:
The x-coordinate of the rectangle’s lower-left corner.
- y:
The y-coordinate of the rectangle’s lower-left corner.
- width:
The width of the rectangle.
- height:
The hight of the rectangle.