Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NourMustafa9 opened this issue Jan 29, 2020 · 0 comments
Open

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

NourMustafa9 opened this issue Jan 29, 2020 · 0 comments

Comments

@NourMustafa9
Copy link

NourMustafa9 commented Jan 29, 2020

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) })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant