Skip to content

minsOne/FlexUI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlexUI

CI Status Version License Platform SwiftPM

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, woosub.dev@gmail.com

License

FlexUI is available under the MIT license. See the LICENSE file for more info.

Inspiration from

SwiftUI
KarrotFlex

About

FlexLayout Sugar Framework like SwiftUI syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%