SMWaterFlowLayout is a subclass of UICollectionViewFlowLayout, easy to use.
- iOS 8.0+
- Xcode 9.0
- Swift 4.0
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate SwipeMenu into your Xcode project using Carthage, specify it in your Cartfile
:
github "harryzjm/SMWaterFlowLayout"
Run carthage
to build the framework.
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate SMWaterFlowLayout into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
use_frameworks!
target '<Your Target Name>' do
pod 'SMWaterFlowLayout'
end
Then, run the following command:
$ pod install
Simply add the file in Source directory into your project.
var lineCount: UInt //to adjust line count
you must be follow UICollectionViewDelegateFlowLayout
, to support height from
func collectionView(UICollectionView, layout: UICollectionViewLayout, sizeForItemAt: IndexPath)
and lineLength
, you can easily get from SMWaterFlowLayout.lineLength
. just look up demo.
- If you need help, open an issue or send an email.
- If you found a bug, open an issue or send an email.
- If you'd like to ask a question,open an issue or send an email.
- If you want to contribute, submit a pull request.
SMWaterFlowLayout is released under the MIT license. See LICENSE for details.
Hares - https://github.com/harryzjm
Blog: https://harryzjm.github.io/
Email: [email protected]