CGRect

Undocumented

  • Creates a new CGRect based on self with the given insets. This allows non-symmetric insets, where CGRectInset does not.

    Declaration

    Swift

    public func rectWithInsets(insets:UIEdgeInsets, capsToZero:Bool = true) -> CGRect

    Parameters

    insets

    The insets to create the new CGRect from.

    capsToZero

    Whether or not the width and height of the new rect should be non-negative. The default value is true.

  • The center of this rect as defined by CGRectGetMidX(_:) and CGRectGetMidY(_:)

    Declaration

    Swift

    public var center:CGPoint