Use FlexLayout like SwiftUI Syntax!
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)
}
FlexUI is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'FlexUI'
woosub-lee, [email protected]
FlexUI is available under the MIT license. See the LICENSE file for more info.
SwiftUI
KarrotFlex