Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func autoScroll(time: Int){
- DispatchQueue.main.async {
- self.run(after: time) {
- cell._collectionView.scrollToItem(at: IndexPath(row: indexItem, section: 0), at: .centeredHorizontally, animated: true)
- indexItem += 1
- autoScroll(time: 3)
- return
- }
- }
- }
- autoScroll(time: 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement