Title: Theory / Important / CS / Programming / Objective-C / Library / UIKit / View / stackview
On every note of this deck, unless a note says otherwise:
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc

Name: A stack view
Definition: Auto-layout without constraints, elements are aranged according to simple properties
Page: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutWithoutConstraints.html#//apple_ref/doc/uid/TP40010853-CH8-SW1

Variable: stackView.orientation
Meaning: the stack view’s orientation, either vertical or horizontal.
Page: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutWithoutConstraints.html#//apple_ref/doc/uid/TP40010853-CH8-SW1
Context: stackView
Language: Objective-C
Assuming: NSStackView only

Variable: stackView.distribution
Meaning: the layout of the views along the axis.
Page: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutWithoutConstraints.html#//apple_ref/doc/uid/TP40010853-CH8-SW1 https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: stackView
Language: Objective-C
Typ: UIStackViewDistribution
Variables: UIStackView stackView

Variable: stackView.alignment
Meaning: the layout of the arranged views perpendicular to the stack’s axis.
Page: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutWithoutConstraints.html#//apple_ref/doc/uid/TP40010853-CH8-SW1
Context: stackView
Language: Objective-C

Variable: stackView.spacing
Meaning: the minimum spacing between arranged views.
Page: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/AutoLayoutWithoutConstraints.html#//apple_ref/doc/uid/TP40010853-CH8-SW1
Context: stackView
Language: Objective-C

Question: In an arranged subview, which views are on top
Answer: view with lower index appear behind subviews with a higher index
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI

Question: In an horizontal arranged subview, in which order are the views
Answer: Views are arranged in the reading sens.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI

Typ: UIStackView
Meaning: A streamlined interface for laying out a collection of views in either a column or a row.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Language: Objective-C
Context: iOS UI
Variables: UIStackView stackView
Subtype of: UIView

Variable: stackView.axis
Meaning: The axis along which the arranged views are laid out.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI
Language: Objective-C
Typ: UILayoutConstraintAxis
Variables: UIStackView stackView

Variable: stackView.arrangedSubviews
Meaning: The list of views arranged by the stack view.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI
Language: Objective-C
Variables: UIStackView stackView

Variable: stackView.alignment
Meaning: the layout of the views perpendicular to the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI
Language: Objective-C
Typ: UIStackViewAlignment
Variables: UIStackView stackView

Variable: stackView.baselineRelativeArrangement
Meaning: whether the vertical spacing between views is measured from their baselines.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI
Language: Objective-C
Variables: UIStackView stackView

Variable: stackView.layoutMarginsRelativeArrangement
Meaning: whether the stack view lays out its arranged views relative to its layout margins.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI
Language: Objective-C
Variables: UIStackView stackView

Variable: stackView.customSpacingAfterView
Meaning: the custom spacing after the specified view.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Context: iOS UI
Language: Objective-C
Variables: UIStackView stackView

Constant: UIStackViewSpacingUseDefault
Meaning: The default spacing for subviews within a stack view.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Language: UIStackView stackView
Context: iOS UI

Constant: UIStackViewSpacingUseSystem
Meaning: The system-defined spacing to the neighboring view.
Page: https://developer.apple.com/documentation/uikit/uistackview?language=objc
Language: UIStackView stackView
Context: iOS UI

Typ: UIStackViewDistribution
Meaning: The layout that defines the size and position of the arranged views along the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackviewdistribution?language=objc
Language: UIStackView stackView
Context: iOS UI

Constant: UIStackViewDistributionFill
Meaning: A layout where the stack view resizes its arranged views so that they fill the available space along the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackviewdistribution?language=objc
Language: UIStackView stackView
Context: iOS UI
Typ: UIStackViewDistribution

Constant: UIStackViewDistributionFillEqually
Meaning: the stack view resizes its arranged views so that they fill the available space along the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackviewdistribution?language=objc
Language: UIStackView stackView
Context: iOS UI
Typ: UIStackViewDistribution

Constant: UIStackViewDistributionFillProportionally
Meaning: the stack view resizes its arranged views so that they fill the available space along the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackviewdistribution?language=objc
Language: UIStackView stackView
Context: iOS UI
Typ: UIStackViewDistribution

Constant: UIStackViewDistributionEqualSpacing
Meaning: the stack view positions its arranged views so that they fill the available space along the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackviewdistribution?language=objc
Language: UIStackView stackView
Context: iOS UI
Typ: UIStackViewDistribution

Constant: UIStackViewDistributionEqualCentering
Meaning: attempts to position the arranged views so that they have an equal center-to-center spacing along the stack view’s axis, while maintaining the spacing property’s distance between views.
Page: https://developer.apple.com/documentation/uikit/uistackviewdistribution?language=objc
Language: UIStackView stackView
Context: iOS UI
Typ: UIStackViewDistribution

Instruction: [stackView
  initWithArrangedSubviews:views
]
Language: UIStackView stackView
Context: iOS UI
Returns: a new stack view object that manages the provided views.
Variables: UIStackView* stackView
Typ: UIStackViewDistribution

Instruction: [stackView
  initWithFrame:frame
]
Language: UIStackView stackView
Context: iOS UI
Returns: ?
Variables: UIStackView* stackView

Instruction: [stackView
  initWithCoder:coder
]
Language: UIStackView stackView
Context: iOS UI
Returns: ?
Variables: UIStackView* stackView

Instruction: [stackView
  addArangedSubview:view
]
Effect: Add view to stackView
Language: UIStackView stackView
Context: iOS UI
Returns: ?
Variables: UIStackView* stackView

Instruction: [stackView
  insertArrangedSubview:view
  atIndex:index
]
Effect: Add view at index in stackView
Language: UIStackView stackView
Context: iOS UI
Returns: ?
Variables: UIStackView* stackView

Instruction: [stackView
  removeArrangedSubview:view
]
Effect: Removes the provided view from the stack’s array of arranged subviews.
Language: UIStackView stackView
Context: iOS UI
Variables: UIStackView* stackView
Extra: View is still displayed. You must call removeFromSuperview on it to stop display

Instruction: [stackView
  setCustomSpacing:spacing
  afterView:arrangedSubview
]
Effect: Applies custom spacing after arrangedSubview
Language: UIStackView stackView
Context: iOS UI
Variables: UIStackView* stackView

Typ: UIStackViewAlignment
Meaning: The layout of arranged views perpendicular to the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackviewalignment?language=objc
Language: Objective-C
Context: iOS UI

Constant: UIStackViewAlignmentFill
Meaning: the stack view resizes its arranged views so that they fill the available space perpendicular to the stack view’s axis.
Page: https://developer.apple.com/documentation/uikit/uistackviewalignment?language=objc
Language: Objective-C
Context: iOS UI
Typ: UIStackViewAlignment

Constant: UIStackViewAlignment(Leading|Trailing|Top|Bottom|Center)
Page: https://developer.apple.com/documentation/uikit/uistackviewalignment?language=objc
Language: Objective-C
Context: iOS UI
Typ: UIStackViewAlignment

Constant: UIStackViewAlignment(First|Last)Baseline
Meaning: A layout where the stack view aligns its arranged views based on their last baseline.
Page: https://developer.apple.com/documentation/uikit/uistackviewalignment?language=objc
Language: Objective-C
Context: iOS UI
Typ: UIStackViewAlignment