Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
voizzy committed Oct 9, 2021
1 parent 8528be7 commit 5b6d25c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
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

![stable](https://raw.githubusercontent.com/aimalygin/InfiniteCollectionViewFlowLayout/main/stable.gif)

## Demo

![Demo](https://raw.githubusercontent.com/aimalygin/InfiniteCollectionViewFlowLayout/main/demo.gif)

## 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())
```
Binary file added stable.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5b6d25c

Please sign in to comment.