CLASS

StackViewStyle

Contents

public final class StackViewStyle: UIStyle

The UIStyle subclass used for a single UIStackView UI component styling definitions.

- 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

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.