Declarative UI sugar framework built on FlexLayout
👨🔧 Beware, Under construction 🧑🔧
To run the example project, clone the repo, and run pod install
from the Example directory first.
self.someView.flex.define {
FlexHStack($0) {
FlexSpacer($0, spacing: 24.0)
FlexVStack($0) {
FlexItem($0, view: self.titleLabel)
FlexSpacer($0, spacing: 8.0)
FlexItem($0, view: self.descLabel)
FlexSpacer($0, spacing: 24.0)
FlexItem($0, view: self.infoLabel)
}
}
.padding(16.0)
}
pod 'KarrotFlex'
In your Package.swift:
let package = Package(
name: "Example",
dependencies: [
.package(url: "https://github.com/daangn/KarrotFlex.git", from: "1.0.0")
],
targets: [
.target(name: "Example", dependencies: ["KarrotFlex"])
]
)
KarrotFlex is available under the MIT license. See the LICENSE file for more info.