From 2772b200807b0d7811104dc426ec87757de4c01d Mon Sep 17 00:00:00 2001 From: Nelson Tai Date: Fri, 8 Apr 2016 07:49:44 +0800 Subject: [PATCH] Update podspec and README --- CHTCollectionViewWaterfallLayout.podspec | 6 ++++-- README.md | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHTCollectionViewWaterfallLayout.podspec b/CHTCollectionViewWaterfallLayout.podspec index cfe6274..6d29927 100644 --- a/CHTCollectionViewWaterfallLayout.podspec +++ b/CHTCollectionViewWaterfallLayout.podspec @@ -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" => "chiahsien@gmail.com" } 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| diff --git a/README.md b/README.md index 4f2aa32..257ab1b 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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/ -