UIEdgeInsets
struct UIEdgeInsets
-
Mechanica
Returns the vertical insets (composed by top + bottom).
Declaration
Swift
public var vertical: CGFloat { get } -
Mechanica
Returns the horizontal insets (composed by left + right).
Declaration
Swift
public var horizontal: CGFloat { get }
-
Mechanica
Creates an
UIEdgeInsetswith the same inset value applied to all (top, bottom, right, left)Declaration
Swift
public init(inset: CGFloat) -
Mechanica
Creates an
UIEdgeInsetswith the horizontal value equally divided and applied to right and left and the vertical value equally divided and applied to top and bottom.Declaration
Swift
public init(horizontal: CGFloat, vertical: CGFloat)Parameters
horizontalInset to be applied to right and left.
verticalInset to be applied to top and bottom.
UIEdgeInsets Extension Reference