-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
Hello there! I have a section:
final class SomeSection: NSCollectionLayoutSection {
convenience init() {
let estimatedWidth: CGFloat = 100
let itemSize = NSCollectionLayoutSize(widthDimension: .estimated(estimatedWidth),
heightDimension: .absolute(30))
let item = NSCollectionLayoutItem(layoutSize: itemSize)
item.edgeSpacing = NSCollectionLayoutEdgeSpacing(leading: nil,
top: nil,
trailing: .fixed(8),
bottom: nil)
let groupSize = NSCollectionLayoutSize(widthDimension: .estimated(estimatedWidth),
heightDimension: .absolute(30))
let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize,
subitems: [item])
self.init(group: group)
orthogonalScrollingBehavior = .continuous
interGroupSpacing = 8
contentInsets = NSDirectionalEdgeInsets(top: 12,
leading: 16,
bottom: 0,
trailing: 0)
}
}Metadata
Metadata
Assignees
Labels
No labels
