Swiftpack.co - daangn/KarrotFlex as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by daangn.
daangn/KarrotFlex 1.0.1
Declarative iOS UI sugar framework built on FlexLayout
⭐️ 75
🕓 3 days ago
iOS
.package(url: "https://github.com/daangn/KarrotFlex.git", from: "1.0.1")

KarrotFlex

CI Status Version License Platform CI

Declarative UI sugar framework built on FlexLayout
👨‍🔧 Beware, Under construction 🧑‍🔧

Example

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)
}

Requirements

Installation

CocoaPods

pod 'KarrotFlex'

Swift Package Manager

In your Package.swift:

let package = Package(
  name: "Example",
  dependencies: [
    .package(url: "https://github.com/daangn/KarrotFlex.git", from: "1.0.1")
  ],
  targets: [
    .target(name: "Example", dependencies: ["KarrotFlex"])
  ]
)

Author

License

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

GitHub

link
Stars: 75
Last commit: 3 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v1.0.1
3 days ago

What's Changed

New Contributors

Full Changelog: https://github.com/daangn/KarrotFlex/compare/1.0.0...1.0.1

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics