项目作者: iTofu

项目描述 :
⚠️ UIStackView IS A BETTER SOLUTION. 🏁 Grids layout, making views equidistant. Base on SnapKit.
高级语言: Swift
项目地址: git://github.com/iTofu/Grids.git
创建时间: 2017-03-16T05:47:14Z
项目社区:https://github.com/iTofu/Grids

开源协议:MIT License

下载


⚠️ UIStackView IS A BETTER SOLUTION.

Grids











Grids

🏁 Grids layout, making views equidistant. Base on SnapKit. (Waiting logo…)

  1. In me the tiger sniffs the rose.
  2. 心有猛虎,细嗅蔷薇。

Welcome to visit my blog:https://LeoDev.me

Contents

Requirements

  • iOS 8.0+ / macOS X 10.11+ / tvOS 9.0+
  • Xcode 8.0+
  • Swift 3.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

  1. $ gem install cocoapods

CocoaPods 1.1.0+ is required to build Grids.

To integrate Grids into your Xcode project using CocoaPods, specify it in your Podfile:

  1. use_frameworks!
  2. target '<Your Target Name>' do
  3. pod 'Grids'
  4. end

Manually

If you prefer not to use the aforementioned dependency manager, you can integrate Grids into your project manually.

Usage

  • Quick Start:

    1. let view1 = UIView()
    2. let view2 = UIView()
    3. self.view.addSubview(view1)
    4. self.view.addSubview(view2)
    5. view1.snp.makeConstraints { (make) in
    6. make.centerY.equalToSuperview()
    7. make.size.equalTo(CGSize(width: 80.0, height: 80.0))
    8. make.centerY.equalTo(view2)
    9. make.size.equalTo(view2)
    10. }
    11. self.view.grids.horizontal(subviews: [view1, view2])

    Preview:

    Grids

  • Resources:

ChangeLog

V 0.0.2

  • Rename and migrate project:

    1. Grid -> Grids

V 0.0.1

  • Hello World!

Support

License

Grids is released under the MIT License.