Change margin reference

This commit is contained in:
Michael Ong
2023-03-23 09:07:40 +08:00
parent e8113ce517
commit 69e857eb6a

View File

@@ -92,9 +92,7 @@ public extension Templates {
}
let collectionLayout = layout(source)
let configuration = collectionLayout.configuration
configuration.contentInsetsReference = .layoutMargins
if header != nil {
let headerSupplementaryItem = NSCollectionLayoutBoundarySupplementaryItem(