THEOMargins
@objc(THEOplayerTHEOMargins)
public class THEOMargins : NSObject
The THEOMargins class is used to define quadruple margins.
-
The top margin.
Declaration
Swift
@objc public private(set) var top: Int { get } -
The right margin.
Declaration
Swift
@objc public private(set) var right: Int { get } -
The bottom margin.
Declaration
Swift
@objc public private(set) var bottom: Int { get } -
The left margin.
Declaration
Swift
@objc public private(set) var left: Int { get } -
Constructs a new THEOMargins instance.
Declaration
Swift
@objc 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
@objc 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
@objc public convenience init(all: Int)Parameters
allWill apply this margin for all sides. (left, right, top and bottom)
THEOMargins Class Reference