CGRect

Undocumented

  • Creates a new rect with given center and size.

    Declaration

    Swift

    @available(* 0.0.8, *)
    public init(center: CGPoint, size: CGSize)

    Parameters

    center

    Center of the rectangle.

    size

    Size of the rectangle.

    Return Value

    Properly initialized instance.

  • Point located at minimum X and Y values of this rect.

    Declaration

    Swift

    public var minPoint: CGPoint { get }
  • Point located at maximum X and Y values of this rect.

    Declaration

    Swift

    public var maxPoint: CGPoint { get }