- May 27, 2025
- Mins Read
A wonderful layout component called the UIStackView
was introduced with iOS 9. With this component it is really easy to layout components in a row both horizontally and vertically. Apple recommends using the UIStackView
wherever possible and resort to explicit NSLayoutConstraints
only when there is no way to do it with UIStackView
. This saves you lots of boiler plate NSLayoutConstraint
creation code.
UIStackView
requires iOS 9, but we’re not ready to make our apps require iOS 9+ just yet. In the meanwhile, we developers are eager to try this component in our apps right now! This is why I created this replica of the UIStackView
, called the TZStackView
(TZ = Tom van Zummeren, my initials). I created this component very carefully, tested every single corner case and matched the results against the real UIStackView
with automated XCTestCases
.
UIStackView
including all distribution and alignment optionshidden
property of the arranged subviewsSo this implementation does not support Storyboard. It is meant for iOS developers who, like me, want to use the UIStackView
in our existing apps and like to layout their components in code as opposed to using Storyboard.
Light and scrollable view controller for tvOS to present blocks of text Description TvOSTextViewer is a view controller to present ...
TvOSSlider is an implementation of UISlider for tvOS. Description and usage TvOSSlider palliates missing an implementation of UISlider for tvOS as part ...
TvOSScribble, based on CoreML, mitigates the lack of a physical numpad area in Siri Remote implementing a handwriting gesture recognizer. ...
PIN keyboard for tvOS Description TvOSPinKeyboard is a view controller that allows easily asking for PIN codes in tvOs Requirements ...
📺 A tvOS button which truncates long text with '... More'. The TvOSMoreButton is a simple view which aims to ...