Compare commits

...

6 Commits

Author SHA1 Message Date
Arnaud Dorgans d3d5136f3d git fix 2018-04-03 14:45:23 +02:00
Arnaud Dorgans 8691a862bc Update README.md 2018-03-02 18:20:25 -04:00
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
3 changed files with 17 additions and 16 deletions
+1
View File
@@ -33,3 +33,4 @@ Carthage
# Pods/
/Example/InfiniteLayout.xcworkspace
/Example/Pods
/Example/InfiniteLayout.xcodeproj/project.xcworkspace/xcshareddata
+10 -10
View File
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'InfiniteLayout'
s.version = '0.2.2'
s.version = '0.2.3.1'
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.
@@ -21,11 +21,11 @@ Pod::Spec.new do |s|
Horizontal and Vertical infinite scrolling feature for UICollectionView with Paging, NSProxy delegate, Reactive extension, SectionModel & AnimatableSectionModel support
DESC
s.homepage = 'https://github.com/Arnoymous/InfiniteLayout'
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.homepage = 'https://github.com/arnauddorgans/InfiniteLayout'
s.screenshots = 'https://github.com/arnauddorgans/InfiniteLayout/raw/master/horizontal.gif', 'https://github.com/arnauddorgans/InfiniteLayout/raw/master/vertical.gif', 'https://github.com/arnauddorgans/InfiniteLayout/raw/master/custom.gif', 'https://github.com/arnauddorgans/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 }
s.author = { 'Arnaud Dorgans' => 'ineox@me.com' }
s.source = { :git => 'https://github.com/arnauddorgans/InfiniteLayout.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/arnauddorgans'
s.ios.deployment_target = '8.0'
@@ -39,7 +39,7 @@ Horizontal and Vertical infinite scrolling feature for UICollectionView with Pag
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
s.dependency 'CocoaProxy', '~> 0.1'
s.dependency 'CocoaProxy', '~> 0'
s.default_subspec = 'Core'
@@ -48,10 +48,10 @@ Horizontal and Vertical infinite scrolling feature for UICollectionView with Pag
end
s.subspec 'Rx' do |rx|
rx.dependency 'InfiniteLayout/Core', '~> 0.2'
rx.dependency 'RxSwift', '~> 4.0'
rx.dependency 'RxCocoa', '~> 4.0'
rx.dependency 'RxDataSources', '~> 3.0'
rx.dependency 'InfiniteLayout/Core', '~> 0'
rx.dependency 'RxSwift', '~> 4'
rx.dependency 'RxCocoa', '~> 4'
rx.dependency 'RxDataSources', '~> 3'
rx.source_files = 'InfiniteLayout/Rx/**/*'
end
end
+6 -6
View File
@@ -1,11 +1,11 @@
# InfiniteLayout
[![CI Status](http://img.shields.io/travis/Arnoymous/InfiniteLayout.svg?style=flat)](https://travis-ci.org/Arnoymous/InfiniteLayout)
[![CI Status](http://img.shields.io/travis/arnauddorgans/InfiniteLayout.svg?style=flat)](https://travis-ci.org/arnauddorgans/InfiniteLayout)
[![Version](https://img.shields.io/cocoapods/v/InfiniteLayout.svg?style=flat)](http://cocoapods.org/pods/InfiniteLayout)
[![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="horizontal.gif" width="250" height="540"><img src="vertical.gif" width="250" height="540"><img src="custom.gif" width="250" height="540">
<img src="https://github.com/arnauddorgans/InfiniteLayout/raw/master/horizontal.gif" width="250" height="540"><img src="https://github.com/arnauddorgans/InfiniteLayout/raw/master/vertical.gif" width="250" height="540"><img src="https://github.com/arnauddorgans/InfiniteLayout/raw/master/custom.gif" width="250" height="540">
## Example
@@ -80,7 +80,7 @@ self.infiniteCollectionView.preferredCenteredIndexPath = nil // center the close
### Delegate
<img src="delegate.gif" width="250" height="540">
<img src="https://github.com/arnauddorgans/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.
@@ -151,20 +151,20 @@ RxInfiniteCollectionView provide Reactive extension for **itemCentered** & **mod
```swift
infiniteCollectionView.rx.itemCentered
.asDriver()
.drive(onNext: { indexPath in
.drive(onNext: { [unowned self] indexPath in
self.selectedView.update(index: indexPath.row) // update interface with indexPath
}).disposed(by: disposeBag)
infiniteCollectionView.rx.modelCentered(Int.self)
.asDriver()
.drive(onNext: { element in
.drive(onNext: { [unowned self] element in
self.selectedView.update(index: element) // update interface with model
}).disposed(by: disposeBag)
```
## Author
Arnoymous, arnaud.dorgans@gmail.com
Arnaud Dorgans, arnaud.dorgans@gmail.com
## License