CGSize
extension CGSize
-
Returns the size increased by the insets’ horizontal and vertical values. Useful for calculating content size.
Declaration
Swift
public func inset(by insets: NSDirectionalEdgeInsets) -> CGSize
Parameters
insets
amount to reduce the size by
Return Value
the reduced size value
-
Returns the size increased by the insets’ horizontal and vertical values. Useful for calculating content size.
Declaration
Swift
public func inset(by insets: UIEdgeInsets) -> CGSize
Parameters
insets
amount to reduce the size by
Return Value
the reduced size value
-
Returns the size increased by the insets’ horizontal and vertical values. Useful for calculating content size.
Declaration
Swift
public func outset(by insets: NSDirectionalEdgeInsets) -> CGSize
Parameters
insets
amount to increase the size by
Return Value
the increased size value
-
Returns the size increased by the insets’ horizontal and vertical values. Useful for calculating content size.
Declaration
Swift
public func outset(by insets: UIEdgeInsets) -> CGSize
Parameters
insets
amount to increase the size by
Return Value
the increased size value