Skip to content

Commit

Permalink
Update podspec and README
Browse files Browse the repository at this point in the history
  • Loading branch information
chiahsien committed Apr 7, 2016
1 parent db39e86 commit 2772b20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions CHTCollectionViewWaterfallLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
Pod::Spec.new do |s|
s.name = "CHTCollectionViewWaterfallLayout"
s.version = "0.9.3"
s.version = "0.9.4"
s.summary = "The waterfall (i.e., Pinterest-like) layout for UICollectionView."
s.homepage = "https://github.com/chiahsien/CHTCollectionViewWaterfallLayout"
s.screenshots = "https://raw.github.com/chiahsien/UICollectionViewWaterfallLayout/master/Screenshots/2-columns.png"
s.license = 'MIT'
s.author = { "Nelson" => "[email protected]" }
s.source = { :git => "https://github.com/chiahsien/CHTCollectionViewWaterfallLayout.git", :tag => "#{s.version}" }
s.tvos.deployment_target = '9.0'
s.requires_arc = true

s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'

s.default_subspec = 'ObjC'

s.subspec 'ObjC' do |ss|
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Screen Shots

Features
--------
* Easy to use, it trys to imitate [UICollectionViewFlowLayout]'s usage as much as possible.
* Easy to use, it tries to imitate [UICollectionViewFlowLayout]'s usage as much as possible.
* Highly customizable.
* Outstanding performance, try 10,000+ items and see the smoothness for yourself.
* Support header and footer views.
Expand All @@ -31,16 +31,17 @@ Prerequisite
How to install
--------------
* [CocoaPods]
Add `pod 'CHTCollectionViewWaterfallLayout'` to your podfile.
- Add `pod 'CHTCollectionViewWaterfallLayout'` to your Podfile.
- If you prefer Swift, `pod 'CHTCollectionViewWaterfallLayout/Swift'` is ready for you.
* Manual
Copy `CHTCollectionViewWaterfallLayout.h/m` to your project.
- Copy `CHTCollectionViewWaterfallLayout.h/m` or `CHTCollectionViewWaterfallLayout.swift` to your project.

How to Use
----------
Read the demo codes and `CHTCollectionViewWaterfallLayout.h` header file for more information.

#### Step 1
Below lists the properties for you to customize the layout. Although they have default values, I strongly recommand you to set up at least the `columnCount` property to suit your needs.
Below lists the properties for you to customize the layout. Although they have default values, I strongly recommend you to set up at least the `columnCount` property to suit your needs.
The `itemRenderDirection` property is an enum which decides the order in which your items will be rendered in subsequent rows. For eg. Left-Right | Right-Left | Shortest column filling up first.

``` objc
Expand Down Expand Up @@ -104,4 +105,3 @@ Refer to the [Releases page](https://github.com/chiahsien/CHTCollectionViewWater
[Pinterest]: http://pinterest.com/
[PSTCollectionView]: https://github.com/steipete/PSTCollectionView
[CocoaPods]: http://cocoapods.org/

0 comments on commit 2772b20

Please sign in to comment.