I want create this Sliding UIVies in xocde using swift, what sholud i used ? an collecntionView or TableView ? how to use it? : i want to create an exact screen in my ios application im not able to create it , what shall i used? an collectionView? or ScroolView?


import UIKit

class ViewController: UIViewController,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout{
    
    
    @IBOutlet weak var newCollectionView: UICollectionView!
   
   
    
   

   
    override func viewDidLoad() {
        super.viewDidLoad()
        newCollectionView.delegate = self
        newCollectionView.dataSource = self
        // Do any additional setup after loading the view, typically from a nib.
    }
    
    
    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
        return 4
    }
    
    func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
    {
        let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath)
        
        return cell
    }
    
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
        return CGSize(width: view.frame.width, height: view.frame.height)
    }
    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
        return 0
    }
    
    


}[enter image description here][1]


  [1]: https://i.stack.imgur.com/mHhxv.gif