-
Notifications
You must be signed in to change notification settings - Fork 204
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
Crash on Iphone X (iOS 11.2) #7
Comments
That's definitely a bug. Obviously, it's not okay to force-unwrap here as the comment says... 😂 One thing that seems awkward to me is that you have an estimated item size of (1, 1). That's like really small. Maybe it's a quick fix to set it to something that's closer to your actual (average) cell size? |
Actually small |
I know but from my experience the concrete value you set for the estimated item size does have an influence on the layout process, even though, ideally, it shouldn't. I don't know the internals of |
I did have a concrete value set for |
I've found a temporary fix, this might help to avoid crash on iOS 11 iPhone X
|
@pquy1008: Can you provide a sample project where the crash occurs? The stacktrace of the crash might also help. |
Yes, this bug also occurs on the simulator, I can provide a sample project later today |
@AlexGee17: Any progress with the sample project? |
I fix this issue with the follow code: if #available(iOS 10.0, *) { |
Same problem here (only on iOS 10) |
Any news? The problem is also present on iOS 11 and iOS 12 |
So I am having the same issue with any iOS versions before iOS 12
|
This library is generally wondeful, but I am getting this bug as well in a kind of obscure case - the collectionView is actually hidden. What I am doing is initializing the selection asychronously after setting up the view, because when the user gets to this, some items need to be preselected. I solved this by calling selectItem with a scroll parameter that causes no scrolling to occur - it's not a documented value, but I found it somewhere in cyberspace, maybe StackOverflow. Here's a picture of the stacktrace when that last parameter was one of the normal values |
I have implemnted AlignedCollectionViewFlowLayout on my app.
It crash on iPhone X. On iphone 6, 6s and other it works normally.
Please help me.
The text was updated successfully, but these errors were encountered: