FlexUI
Use FlexLayout like SwiftUI Syntax!
Example
self.view.addSubView(rootFlexContainer)
FlexRoot(container: rootFlexContainer) {
FlexHStack {
FlexItem(view: titleLabel)
FlexSpacer().grow(1)
FlexItem(view: settingButton)
}
.height(100)
.padding(8, 16)
.marginBottom(24)
FlexItem(view: contentView).grow(1)
}
Requirements
Installation
FlexUI is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'FlexUI'
Author
woosub-lee, [email protected]
License
FlexUI is available under the MIT license. See the LICENSE file for more info.
Inspiration from
SwiftUI KarrotFlex