THEOMargins

@objc(THEOplayerTHEOMargins)
public class THEOMargins : NSObject

The THEOMargins class is used to define quadruple margins.

  • top

    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

    top

    The top margin value.

    right

    The right margin value.

    bottom

    The bottom margin value.

    left

    The left margin value.

  • Constructs a new THEOMargins instance.

    Declaration

    Swift

    @objc
    public convenience init(horizontal: Int, vertical: Int)

    Parameters

    horizontal

    The left and right margins value.

    vertical

    The top and bottom margins value.

  • Constructs a new THEOMargins instance.

    Declaration

    Swift

    @objc
    public convenience init(all: Int)

    Parameters

    all

    Will apply this margin for all sides. (left, right, top and bottom)