You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 18, 2022. It is now read-only.
@@ -44,6 +46,40 @@ class CollectionViewCell: CarLensCollectionViewCell {
44
46
```
45
47
The sample implementation is available in [Demo](CarLensCollectionViewLayoutDemo) project.
46
48
49
+
### Customization
50
+
51
+
#### Layout
52
+
You can also initialize `CarLensCollectionViewLayout` with a `CarLensCollectionViewLayoutOptions` object by passing any of the parameters available. Others will be configured automatically.
53
+
54
+
**Parameters:**
55
+
56
+
`minimumSpacing` - A minimum spacing between cells.
57
+
58
+
`decelerationRate` - A deceleration for a scroll view.
59
+
60
+
`shouldShowScrollIndicator` - A value indicating whether collection view should have a scroll indicator.
61
+
62
+
`itemSize` - The size to use for cells.
63
+
64
+
Example:
65
+
```swift
66
+
let options =CarLensCollectionViewLayoutOptions(minimumSpacing: 40)
While subsclassing `CarLensCollectionViewCell` you can call `configure(...)` with an additional parameter `topViewHeight`. The card view height will be calculated based on this value.
0 commit comments