FSPagerView
FSPagerView copied to clipboard
How to get the numberOfItems
internal var numberOfItems: Int = 0
internal var numberOfSections: Int = 0
Coz it's internal
.
As part of UICollectionViewDataSource
you provide this information:
public func numberOfSections(in collectionView: UICollectionView) -> Int {}
Since you're providing the data, you know the number of items you're using. You don't access the internal numberOfItems
variable
if let numberOfItems = pageView.dataSource?.numberOfItems(in: pageView), numberOfItems > 0 {
}
Should this working?