Post

Replies

Boosts

Views

Activity

Reply to UICollectionViewCompositionalLayout cannot ignore safe area
It's now possible on iOS and tvOS 14. You have to use the contentInsetsReference property. You can set for a specific NSCollectionLayoutSection: swift let section = NSCollectionLayoutSection(group: group) section.contentInsetsReference = .none Or you can set for the whole UICollectionViewCompositionalLayout using UICollectionViewCompositionalLayoutConfiguration: swift let configuration = UICollectionViewCompositionalLayoutConfiguration() configuration.contentInsetsReference = .none https://developer.apple.com/documentation/uikit/uicontentinsetsreference
Mar ’21