CGRect
-
Easier initialization of CGRect
Declaration
Swift
public init(x: CGFloat, y: CGFloat, w: CGFloat, h: CGFloat)
-
X value of CGRect’s origin
Declaration
Swift
public var x: CGFloat
-
Y value of CGRect’s origin
Declaration
Swift
public var y: CGFloat
-
Width of CGRect’s size
Declaration
Swift
public var w: CGFloat
-
Height of CGRect’s size
Declaration
Swift
public var h: CGFloat
-
Surface Area represented by a CGRectangle
Declaration
Swift
public var area: CGFloat