Padding

public struct Padding : Encodable

Sets the padding of the title.

Each padding value only applies when the corresponding xanchor/yanchor value is set accordingly. E.g. for left padding to take effect, xanchor must be set to left. The same rule applies if xanchor/yanchor is determined automatically. Padding is muted if the respective anchor value is middle/center.

  • t

    The amount of padding (in px) along the top of the component.

    Declaration

    Swift

    public var t: Double?
  • r

    The amount of padding (in px) on the right side of the component.

    Declaration

    Swift

    public var r: Double?
  • b

    The amount of padding (in px) along the bottom of the component.

    Declaration

    Swift

    public var b: Double?
  • l

    The amount of padding (in px) on the left side of the component.

    Declaration

    Swift

    public var l: Double?
  • Creates Padding object with specified properties.

    Declaration

    Swift

    public init(t: Double? = nil, r: Double? = nil, b: Double? = nil, l: Double? = nil)

    Parameters

    t

    The amount of padding (in px) along the top of the component.

    r

    The amount of padding (in px) on the right side of the component.

    b

    The amount of padding (in px) along the bottom of the component.

    l

    The amount of padding (in px) on the left side of the component.