Fast API to make a UIStackView instance.
- Chain programming API
- Provide a easy way to config UIStackView property
- More conveniently reload or update arraged views
- Immediately reverse arraged views's order
- iOS 9.0+
- macOS 10.11+
The preferred installation method is with CocoaPods. Add the following to your Podfile
:
pod 'UIStackViewMaker'
Copy UIStackViewMaker directory in your project
#import <UIStackViewMaker/UIStackView+STMaker.h>
...
UIStackView * contentStackView = [UIStackView.stMake stConfig:^(STStackViewConfig * _Nonnull config) {
config.stVer.stDistributeFill.stAlignLead.stInsets(UIEdgeInsetsMake(5, 0, 0, 0));
}];
[contentStackView stGroupItems:^(STStackItemMaker * _Nonnull make) {
make.stView(self.nameLabel).stTrailSpacing(5);
make.stView(self.messageLabel);
}];
UIStackViewMaker
is MIT-licensed.