UPCarouselFlowLayout icon indicating copy to clipboard operation
UPCarouselFlowLayout copied to clipboard

Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ba93fe0)

Open NourMustafa9 opened this issue 5 years ago • 0 comments

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) })
}

NourMustafa9 avatar Jan 29 '20 14:01 NourMustafa9