| | |
| | | collectionView.bounces = false |
| | | collectionView.showsHorizontalScrollIndicator = false |
| | | collectionView.register(UINib(nibName: "HomeRelaxBannerCCell", bundle: nil), forCellWithReuseIdentifier: "_HomeRelaxBannerCCell") |
| | | // collectionView.scrollToItem(at: IndexPath(row: 2, section: 0), at: .centeredHorizontally, animated: true) |
| | | collectionView.contentInset = UIEdgeInsets(top: 0, left: 100 , bottom: 0, right: 100) |
| | | |
| | | } |
| | |
| | | self.showType = showType |
| | | self.meditationModels = items |
| | | collectionView.reloadData() |
| | | |
| | | if items.count >= 3 { |
| | | collectionView.scrollToItem(at: IndexPath(row: 1, section: 0), at: .centeredHorizontally, animated: true) |
| | | } |
| | | } |
| | | } |
| | | |