-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
# InfiniteCollectionViewFlowLayout | ||
# StableCollectionViewLayout | ||
|
||
This layout adjusts a content offset if the collection view is updated. You can insert, delete or reload items and `InfiniteCollectionViewFlowLayout` will take care of the content offset. | ||
This layout adjusts a content offset if the collection view is updated. You can insert, delete or reload items and `StableCollectionViewLayout` will take care of the content offset. | ||
|
||
Like this | ||
|
||
 | ||
|
||
## Demo | ||
|
||
 | ||
|
||
## Usage | ||
|
||
Firstly, import `InfiniteCollectionViewFlowLayout` | ||
Firstly, import `StableCollectionViewLayout` | ||
```swift | ||
import InfiniteCollectionViewFlowLayout | ||
import StableCollectionViewLayout | ||
``` | ||
|
||
Then you should just create and pass `InfiniteCollectionViewFlowLayout` to `UICollectionView` init | ||
Then you should just create and pass `StableCollectionViewLayout` to `UICollectionView` init | ||
```swift | ||
UICollectionView(frame: .zero, collectionViewLayout: InfiniteCollectionViewFlowLayout()) | ||
UICollectionView(frame: .zero, collectionViewLayout: StableCollectionViewLayout()) | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.