THEOMargins
public class THEOMargins : NSObject
The THEOMargins class is used to define quadruple margins.
-
The top margin.
Declaration
Swift
public let top: Int -
The right margin.
Declaration
Swift
public let right: Int -
The bottom margin.
Declaration
Swift
public let bottom: Int -
The left margin.
Declaration
Swift
public let left: Int -
Constructs a new THEOMargins instance.
Declaration
Swift
public init(top: Int, right: Int, bottom: Int, left: Int)Parameters
topThe top margin value.
rightThe right margin value.
bottomThe bottom margin value.
leftThe left margin value.
-
Constructs a new THEOMargins instance.
Declaration
Swift
public convenience init(horizontal: Int, vertical: Int)Parameters
horizontalThe left and right margins value.
verticalThe top and bottom margins value.
-
Constructs a new THEOMargins instance.
Declaration
Swift
public convenience init(all: Int)Parameters
allWill apply this margin for all sides. (left, right, top and bottom)