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