Swift How to get the centre cell in a collectionView and resize it when scrolling?
问题 I have a horizontal collectionView and i would like to manage that when scrolling it, the centre cell becomes larger. So, each time a cell is the center cell it will be larger than the others. Check the image beneath. Can anyone help me with the best way to do this? Thanks in advance! My code so far: import UIKit class ViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate { @IBOutlet var horizontalCollectionView: UICollectionView! @IBOutlet var