CGRect

Swift

extension CGRect
  • Checks if none of the rect components are infinite or NaN.

    Declaration

    Swift

    var isValid: Bool { get }
  • Set or get center coordinates

    Declaration

    Swift

    var center: CGPoint { get set }
  • The x-coordinate center

    Declaration

    Swift

    var centerX: CGFloat { get set }
  • The y-coordinate center

    Declaration

    Swift

    var centerY: CGFloat { get set }