Latest | 1.0.2 |
---|---|
Homepage | https://github.com/harryzjm/SMWaterFlowLayout |
License | MIT |
Platforms | ios 8.0, requires ARC |
Authors |
SMWaterFlowLayout
===============
SMWaterFlowLayout is a subclass of UICollectionViewFlowLayout, easy to use.
Requirements
- iOS 8.0+
- Xcode 9.0
- Swift 4.0
Installation
Carthage
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
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
Source File
Simply add the file in Source directory into your project.
Usage
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.
Communication
- 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.
License
SMWaterFlowLayout is released under the MIT license. See LICENSE for details.
Author😬
Hares – https://github.com/harryzjm
Blog: https://harryzjm.github.io/
Email: [email protected]
Latest podspec
{ "name": "SMWaterFlowLayout", "version": "1.0.2", "summary": "SMWaterFlowLayout is a subclass of UICollectionViewFlowLayout, easy to use.", "homepage": "https://github.com/harryzjm/SMWaterFlowLayout", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Hares": "[email protected]" }, "social_media_url": "https://harryzjm.github.io/", "platforms": { "ios": "8.0" }, "source": { "git": "https://github.com/harryzjm/SMWaterFlowLayout.git", "tag": "1.0.2" }, "source_files": [ "Source/*.swift", "Source/SMWaterFlowLayout.h" ], "public_header_files": "Source/SMWaterFlowLayout.h", "requires_arc": true, "pod_target_xcconfig": { "SWIFT_VERSION": "4.0" }, "pushed_with_swift_version": "4.0" }
Sun, 10 Dec 2017 09:40:08 +0000