ZCycleView
ZCycleView copied to clipboard
getCurrentIndex 方法 在阿语环境下就 无法实现了
正确的写法应该是这样 private func getCurrentIndex() -> Int { let point = self.convert(collectionView.center, to: self.collectionView) let indexPath = self.collectionView.indexPathForItem(at: point) return indexPath?.item ?? 0 }