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

Commit b551bcb

Browse files
committed
Enable isPagingEnabled by default
1 parent 9e36cd7 commit b551bcb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/SwiftUI/PagingCollectionViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public class PagingCollectionViewController<ValueType: Identifiable, PageContent
9999

100100
collectionView.showsHorizontalScrollIndicator = false
101101
collectionView.showsVerticalScrollIndicator = false
102+
collectionView.isPagingEnabled = true
102103
modifierData?.collectionViewProperties.forEach { property in
103104
if let keyPath: WritableKeyPath<UICollectionView, Bool> = property.getKey(),
104105
let value: Bool = property.getValue() {

0 commit comments

Comments
 (0)