CGRect
Undocumented
-
Creates a new
CGRectbased onselfwith the giveninsets. This allows non-symmetric insets, whereCGRectInsetdoes not.Declaration
Swift
public func rectWithInsets(insets:UIEdgeInsets, capsToZero:Bool = true) -> CGRectParameters
insetsThe insets to create the new CGRect from.
capsToZeroWhether 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(_:)andCGRectGetMidY(_:)Declaration
Swift
public var center:CGPoint
View on GitHub
CGRect Extension Reference