Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit 20608bf

Browse files
authored
Update README.md
1 parent 4426b52 commit 20608bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,7 @@ collectionView.isPagingEnabled = true // enabling paging effect
112112

113113
- Now you just need to conform your `UICollectionViewCell` class to `TransformableView` and start implementing your custom transforms.
114114

115-
*Note:* you can use [prepared transformable protocols](#prepared-transformable-protocols) instead of `TransformableView` if you don't want a custom effect!
116-
117-
> `progress` is a float value that represents the current position of your cell in the collection view.
118-
> When it's `0` that means the current position of the cell is exactly in the center of your collection view.
119-
> the value could be negative or positive and that represents the distance to the center of your collection view.
120-
> for instance `1` means the distance between the center of the cell and the center of your collection view is equal to your collection view width.
115+
*Note:* you can use [Prepared Transformable Protocols](#prepared-transformable-protocols) instead of `TransformableView` if you don't want a custom effect!
121116

122117
```swift
123118
extension MyCollectionViewCell: TransformableView {
@@ -126,6 +121,11 @@ extension MyCollectionViewCell: TransformableView {
126121
}
127122
}
128123
```
124+
> `progress` is a float value that represents the current position of your cell in the collection view.
125+
> When it's `0` that means the current position of the cell is exactly in the center of your collection view.
126+
> the value could be negative or positive and that represents the distance to the center of your collection view.
127+
> for instance `1` means the distance between the center of the cell and the center of your collection view is equal to your collection view width.
128+
129129

130130
you can start with a simple transform like this:
131131
```swift

0 commit comments

Comments
 (0)