Compare commits

...

10 Commits

Author SHA1 Message Date
Arnaud Dorgans e4378462e2 fix 2018-01-05 17:27:50 +01:00
Arnaud Dorgans a8b2962c9b fix 2018-01-05 17:25:49 +01:00
Arnaud Dorgans 31f9b56b3a fix 2018-01-05 17:24:45 +01:00
Arnaud Dorgans 51473be4c7 fix readme 2018-01-05 17:21:19 +01:00
Arnaud Dorgans ee26e28d39 spec gif update 2018-01-05 16:44:49 +01:00
Arnaud Dorgans f6b339ad96 horizontal fix 2018-01-05 16:42:36 +01:00
Arnaud Dorgans cc916ccd92 gif 2018-01-05 15:55:00 +01:00
Arnaud Dorgans ae1969e26f Update README.md 2018-01-05 15:17:34 +01:00
Arnaud Dorgans 42e8d150a2 vertical gif 2018-01-05 15:13:27 +01:00
Arnaud Dorgans b839a5af47 gif 2018-01-05 14:49:06 +01:00
6 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'InfiniteLayout'
s.version = '0.2.1'
s.version = '0.2.3'
s.summary = 'Horizontal and Vertical infinite scrolling feature for UICollectionView with Paging, NSProxy delegate, Reactive extension'
# This description is used to generate tags and improve search results.
@@ -22,7 +22,7 @@ Horizontal and Vertical infinite scrolling feature for UICollectionView with Pag
DESC
s.homepage = 'https://github.com/Arnoymous/InfiniteLayout'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.screenshots = 'https://github.com/Arnoymous/InfiniteLayout/raw/master/horizontal.gif', 'https://github.com/Arnoymous/InfiniteLayout/raw/master/vertical.gif', 'https://github.com/Arnoymous/InfiniteLayout/raw/master/custom.gif', 'https://github.com/Arnoymous/InfiniteLayout/raw/master/delegate.gif'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Arnoymous' => 'ineox@me.com' }
s.source = { :git => 'https://github.com/Arnoymous/InfiniteLayout.git', :tag => s.version.to_s }
+6 -1
View File
@@ -5,6 +5,9 @@
[![License](https://img.shields.io/cocoapods/l/InfiniteLayout.svg?style=flat)](http://cocoapods.org/pods/InfiniteLayout)
[![Platform](https://img.shields.io/cocoapods/p/InfiniteLayout.svg?style=flat)](http://cocoapods.org/pods/InfiniteLayout)
<img src="https://github.com/Arnoymous/InfiniteLayout/raw/master/horizontal.gif" width="250" height="540"><img src="https://github.com/Arnoymous/InfiniteLayout/raw/master/vertical.gif" width="250" height="540"><img src="https://github.com/Arnoymous/InfiniteLayout/raw/master/custom.gif" width="250" height="540">
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
@@ -75,7 +78,9 @@ self.infiniteCollectionView.preferredCenteredIndexPath = [0, 0] // center the ce
self.infiniteCollectionView.preferredCenteredIndexPath = nil // center the closest cell from center
```
### Centered IndexPath
### Delegate
<img src="https://github.com/Arnoymous/InfiniteLayout/raw/master/delegate.gif" width="250" height="540">
InfiniteCollectionView provide an **infiniteDelegate** protocol used to get the centered IndexPath, usefull if you want to use an InfiniteCollectionView like a Picker.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 572 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 688 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB