CGRect

  • Easier initialization of CGRect

    Declaration

    Swift

    public init(x: CGFloat, y: CGFloat, w: CGFloat, h: CGFloat)
  • x

    X value of CGRect’s origin

    Declaration

    Swift

    public var x: CGFloat
  • y

    Y value of CGRect’s origin

    Declaration

    Swift

    public var y: CGFloat
  • w

    Width of CGRect’s size

    Declaration

    Swift

    public var w: CGFloat
  • h

    Height of CGRect’s size

    Declaration

    Swift

    public var h: CGFloat
  • Surface Area represented by a CGRectangle

    Declaration

    Swift

    public var area: CGFloat