Open MariyanskiDev opened 2 years ago
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) } }
And I got crash on iOS < 13:
Hello there! I have a section:
And I got crash on iOS < 13: