UPCarouselFlowLayout
UPCarouselFlowLayout copied to clipboard
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ba93fe0)
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ba93fe0)
override open func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { guard let superAttributes = super.layoutAttributesForElements(in: rect), let attributes = NSArray(array: superAttributes, copyItems: true) as? [UICollectionViewLayoutAttributes] else { return nil }
return attributes.map({ self.transformLayoutAttributes($0) })
}