CGRect
Undocumented
-
Creates a new
CGRect
based onself
with the giveninsets
. This allows non-symmetric insets, whereCGRectInset
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(_:)
andCGRectGetMidY(_:)
Declaration
Swift
public var center:CGPoint