Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1fbb837941 | |||
| 5746d5a7c4 |
@@ -8,8 +8,8 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'InfiniteLayout'
|
||||
s.version = '0.1.1'
|
||||
s.summary = 'Vertical and Horizontal infinite scrolling for UICollectionView'
|
||||
s.version = '0.1.3'
|
||||
s.summary = 'Horizontal and Vertical infinite scrolling feature for UICollectionView'
|
||||
|
||||
# This description is used to generate tags and improve search results.
|
||||
# * Think: What does it do? Why did you write it? What is the focus?
|
||||
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
||||
# * Finally, don't worry about the indent, CocoaPods strips it!
|
||||
|
||||
s.description = <<-DESC
|
||||
Vertical and Horizontal infinite scrolling for UICollectionView with Paging and NSProxy delegate
|
||||
Horizontal and Vertical infinite scrolling feature for UICollectionView with Paging and NSProxy delegate
|
||||
DESC
|
||||
|
||||
s.homepage = 'https://github.com/Arnoymous/InfiniteLayout'
|
||||
|
||||
@@ -26,10 +26,10 @@ pod 'InfiniteLayout'
|
||||
@IBOutlet weak var collectionView: InfiniteCollectionView!
|
||||
```
|
||||
|
||||
InfiniteCollectionView don't need any other delegate or dataSource,
|
||||
just use UICollectionViewDataSource and UICollectionViewDelegate as you'll use it in any other UICollectionView.
|
||||
InfiniteCollectionView doesn't need any other delegate or dataSource,
|
||||
just use UICollectionViewDataSource and UICollectionViewDelegate in the same way as you'll use it in any other UICollectionView.
|
||||
|
||||
InfiniteLayout provide 3 class for infinite scrolling:
|
||||
InfiniteLayout provides 3 classes for infinite scrolling:
|
||||
|
||||
**InfiniteLayout**: an UICollectionViewFlowLayout
|
||||
|
||||
@@ -37,6 +37,27 @@ InfiniteLayout provide 3 class for infinite scrolling:
|
||||
|
||||
**InfiniteCollectionViewController**: an UICollectionViewController with InfiniteCollectionView
|
||||
|
||||
### IndexPath
|
||||
|
||||
InfiniteCollectionView may create fake indexPath,
|
||||
|
||||
To get the real indexPath call
|
||||
|
||||
```swift
|
||||
func indexPath(from infiniteIndexPath: IndexPath) -> IndexPath
|
||||
```
|
||||
|
||||
To get the real section call
|
||||
|
||||
```swift
|
||||
func section(from infiniteSection: Int) -> Int
|
||||
```
|
||||
|
||||
### Paging
|
||||
|
||||
InfiniteCollectionView provide a paging functionality, you can enable it by setting the **isItemPagingEnabled** flag to **true**,
|
||||
|
||||
When the **isItemPagingEnabled** flag is enabled you can adjust the deceleration rate by setting the **velocityMultiplier**, the more the value is high, the more the deceleration is long
|
||||
|
||||
## Author
|
||||
|
||||
|
||||
Reference in New Issue
Block a user