I want to put a UICollectionView control that shows thumbs horizontally (only a single line of thumbs). For some reason the UICollectionView push the thumbs 44 pixels down,
Swift 3:
First you want to set the viewControllers automaticallyAdjustsScrollViewInsets to false:
self.automaticallyAdjustsScrollViewInsets = false
Then, you should be able to adjust the edge insets accordingly:
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
//top, left, bottom, right
return UIEdgeInsets(top: 10, left: 0, bottom: 0, right: 0)
}