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
You can use all properties inherited from `UICollectionView`.
49
73
50
74
**CenteredCollectionView specific properties**:
51
75
52
-
***minimumLineSpacing** amount of space between each cell
76
+
***`minimumLineSpacing`** amount of space between each cell
53
77
```Swift
54
78
var minimumLineSpacing: CGFloat { getset }
55
79
// default: 10
56
80
```
57
81
58
-
***itemSize** size of each cell (⚠️ required)
82
+
***`itemSize`** size of each cell. **⚠️ required for use**
59
83
```Swift
60
84
var itemSize: CGSize { getset }
61
85
```
62
86
63
-
***scrollDirection**direction of scrolling **(supports vertical)**
87
+
***`currentCenteredPage`**calculates the current centred page/item
64
88
```Swift
65
-
var scrollDirection: UICollectionViewScrollDirection { getset }
66
-
// default: .horizontal
89
+
var currentCenteredPage: Int? { get }
67
90
```
68
91
69
-
***scrollToEdgeEnabled**if `true` will scroll on touch to the edge of the cell that is peeking out from a side (wont trigger delegate `didSelectItemAt indexPath:` events)
92
+
***`scrollDirection`**direction of scrolling **(supports vertical)**
0 commit comments