Skip to content

iTofu/Grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Grid

Gird

โš ๏ธ NOTE: This project had migrated to Grids!

๐Ÿ Grid layout, making views equidistantly. Base on SnapKit. (Waiting logo...)

In me the tiger sniffs the rose.

ๅฟƒๆœ‰็Œ›่™Ž๏ผŒ็ป†ๅ—…่”ท่–‡ใ€‚

Welcome to visit my blog๏ผšhttps://LeoDev.me

Contents

Requirements

  • iOS 8.0+ / Mac OS 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:

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build Grid.

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

use_frameworks!

target '<Your Target Name>' do
    pod 'Grids'
end

Manually

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

Usage

  • Quick Start:

    let viewX1 = UIView()
    let viewX2 = UIView()
    
    self.view.addSubview(viewX1)
    self.view.addSubview(viewX2)
    
    viewX1.snp.makeConstraints { (make) in
        make.centerY.equalToSuperview()
        make.size.equalTo(CGSize(width: 80.0, height: 80.0))
      
        make.centerY.equalTo(viewX2)
        make.size.equalTo(viewX2)
    }
    
    self.view.grid.horizontal(subviews: [viewX1, viewX2])
  • Resources:

ChangeLog

V 0.0.1

  • Hello World!

Support

License

Grid is released under the MIT License.

About

๐Ÿ Grid layout, making views equidistant. Base on SnapKit. This project had migrated to Grids.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages