I have a project with a button that allows the user to switch between list view (UITableView) and grid view (UICollectionView) but I don't know how to do it.
UITableView
UICollectionView