CLASS
StackViewStyle
Contents
- Methods
init(spacing:alignment:paddingLeft:paddingTop:paddingRight:paddingBottom:backgroundColor:)
public final class StackViewStyle: UIStyle
The UIStyle subclass used for a single UIStackView
UI component styling definitions.
- Note: Available StackViewStyle Theme configuration options:
- spacing: Number
- alignment: String
Methods
init(spacing:alignment:paddingLeft:paddingTop:paddingRight:paddingBottom:backgroundColor:)
public init(spacing: Double,
alignment: UIStackView.Alignment,
paddingLeft: Double,
paddingTop: Double,
paddingRight: Double,
paddingBottom: Double,
backgroundColor: UIColor?)
Creates a StackViewStyle.
- Parameters:
- spacing: The spacing between objects.
- alignment: The alignment for the content.
- paddingLeft: The left padding of the view.
- paddingTop: The top padding of the view.
- paddingRight: The right padding of the view.
- paddingBottom: The bottom padding of the view.
- backgroundColor: The background color.
Parameters
Name | Description |
---|---|
spacing | The spacing between objects. |
alignment | The alignment for the content. |
paddingLeft | The left padding of the view. |
paddingTop | The top padding of the view. |
paddingRight | The right padding of the view. |
paddingBottom | The bottom padding of the view. |
backgroundColor | The background color. |