- July 30, 2025
- Mins Read
UIStackView is a very handy tool to build flow layout, but it’s available only when iOS9+, we’ve found some great compatible replacements like OAStackView, but we want more:
platform :ios, ‘7.0’
pod “FDStackView”, “1.0”
Import nothing, learn nothing, it just works.
// Works in iOS6+, use it directly.
UIStackView *stackView = [[UIStackView alloc] init];
stackView.axis = UILayoutConstraintAxisHorizontal;
stackView.distribution = UIStackViewDistributionFill;
stackView.alignment = UIStackViewAlignmentTop;
[stackView addArrangedSubview:[[UILabel alloc] init]];
[self.view addSubview:stackView];
Set Builds for
option to iOS 9.0 and later
to eliminate the version error in Xcode:
Now, use UIStackView as you like and its reactive options and live preview:
PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by SPPermissions. The UI is highly customizable and resembles an Apple style. ...
Introduction PagerTabStripView is the first pager view built in pure SwiftUI. It provides a component to create interactive pager views ...
1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...