greedo-layout-for-ios:响应式网格布局
500px 出品的布局库,能够在固定 cell 高度的情况下自动调整图片宽度,让每行的图片都能以最佳状态显示
Swift 布局
共839Star
详细介绍
Greedo Layout for iOS
A library that computes what size the UICollectionView
cells should be to display images in a variable height fixed aspect ratio grid.
Getting Started
Installation with CocoaPods
CocoaPods is a 3rd-party dependency manager for Swift and Objective-C projects. For more information, refer to the CocoaPods Getting Started Guide. Otherwise, you can install CocoaPods with the following command:
$ gem install cocoapods
Podfile
To integrate GreedoLayout into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
pod 'GreedoLayout'
Then, run the following command:
$ pod install
License
GreedoLayout is released under the MIT license. See LICENSE
for details.