I\'m trying to add a UIRefreshControl to a UICollectionView, but the problem is that the refresh control does not appear unless the collection view
UIRefreshControl
UICollectionView
I'm calling beginRefreshing() right after viewDidLoad(), but on some screens it doesn't work. And only collectionView.layoutIfNeeded() in viewDidLoad() helped me
beginRefreshing()
viewDidLoad()
collectionView.layoutIfNeeded()