UIEdgeInsets
-
Creates new
UIEdgeInsetswith the same inset value on all sidesDeclaration
Swift
public init(all: CGFloat)Parameters
allInset to apply to all sides
-
Creates new
UIEdgeInsetswith the same inset value horizontally: left/right, and vertically: top/bottomDeclaration
Swift
public init(vertical: CGFloat = 0, horizontal: CGFloat = 0)Parameters
verticalInset to apply to top and bottom
horizontalInset to apply to left and right
UIEdgeInsets Extension Reference