CGRect

struct CGRect
  • Calculates the center CGPoint of the receiver.

    Declaration

    Swift

    public var center: CGPoint { get }

    Return Value

    an CGPoint, representing the center of the rect.