When iPhone X is used landscape, you\'re supposed to check safeAreaInsets to make suitably large gutters on the left and right. UITableView has the new insetsContentViewsT
insetsContentViewsT
Thanks to above for help. For my UICollectionViewController subClass, I added the following to viewDidLoad() (Swift 3):
if let flowLayout = collectionView?.collectionViewLayout as? UICollectionViewFlowLayout { if #available(iOS 11.0, *) { flowLayout.sectionInsetReference = .fromSafeArea } }