Skip to content

Commit f62bcb3

Browse files
authored
Update README.md
1 parent 7e4519c commit f62bcb3

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</h3>
44

55
# PageKit
6-
A custom View with fancy collectionView animation
6+
A custom View with two level chained collection views and fancy transition animation.
77

88
## Demo
99

@@ -81,6 +81,23 @@ func childCollectionView(_ collectionView: UICollectionView, parentCollectionVie
8181

8282
### Customization
8383

84+
#### Child Collection View Animation Type
85+
86+
For now support two types
87+
88+
```swift
89+
public enum ChainPageChildAnimationType {
90+
case slideOutSlideIn
91+
case shrinkOutExpandIn
92+
}
93+
```
94+
95+
Default is `slideOutSlideIn`, you can set it via initialization.
96+
```swift
97+
let chainView = ChainPageCollectionView(viewType: .normal,
98+
childAnimationType: #yourchoice)
99+
```
100+
84101
#### Layout
85102

86103
You can customize the layout objects used by `parentCollectionView` and `childCollectionView` by

0 commit comments

Comments
 (0)