Coder Social home page Coder Social logo

karrotflex's Introduction

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.1.0")
  ],
  targets: [
    .target(name: "Example", dependencies: ["KarrotFlex"])
  ]
)

In your Xcode target:

Add FLEXLAYOUT_SWIFT_PACKAGE=1 to the build setting.
(TARGET -> Build Settings -> Apple Clang - Preprocessing -> Preprocessor Macros)

Author

License

The KarrotFlex is available for free use, as described by the LICENSE (Apache 2.0).

karrotflex's People

Contributors

devvenusk avatar elonpark avatar geektree0101 avatar leehonghwa avatar magi82 avatar ohkanghoon avatar woohyunjin06 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

karrotflex's Issues

Fix pod trunk warning (swift-version issue)

WARN | [iOS] swift: The validator used Swift 4.0 by default because no Swift version was specified. To specify a Swift version during validation, add the swift_versions attribute in your podspec. Note that usage of a .swift-version file is now deprecated.

Migrate to Swift Package Manager

Change all codes of KarrotFlex to be managed using Swift Package.
Change the snapshot test that previously used xcodeproj to use Swift Package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.