A feature rich version of UIStackView, with simple and powerful API.
SuperStackView allows you to use instead of UIStackView, inspire from AloeStackView.
-
Allows you to add dynamic spacing b/w views
UIStackView doesn't allow to add the variable spacing with different views.
UIStackView spacing property add spacing to all the views.
iOS 11 added the support of dynamic spacing as stackView.setCustomSpacing(10.0, after: firstView) but it's not that flexible and only support line spacing b/w views.
-
Allows you to set alignment (top, bottom and center) to separate views
UIStackView alignment property applied to all the views, with SuperStackView you can set the alignment to any view.
-
Built in separator view support
-
Support all the properties of UIStackView
SuperStackView wrap the views before adding the view to stack along with optional separator.
This allows to change the content inset of any view which acts as subview.
- Deployment target iOS 9.0+
- Xcode 10.0+
- Swift 4.0+
SuperStackView
is available through CocoaPods, to install it simply add the following line to your Podfile:
pod "SuperStackView"