Skip to content
/ Grid Public

🏁 Grid layout, making views equidistant. Base on SnapKit. This project had migrated to Grids.

License

Notifications You must be signed in to change notification settings

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

License

Stars

Watchers

Forks

Packages

No packages published