-
-
Notifications
You must be signed in to change notification settings - Fork 10
UICollectionView's didSelectItem isn't called for UICollectionViewController #191
Comments
Hey @zocario, thanks for the bug report. I'll get back to you when I've had time to reproduce and examine the issue 😎 |
Thanks @zenangst I've updated the issue as there is also the navigation bar not updating its large title while scrolling :) |
No worries mate, you're not a bother at all! The next natural step would be to try and fix the issue yourself by modifying and contributing to the project but let's take it one step at a time 😎 Cheers! |
@zocario I figure it out and made a PR for it here #192 It was basically a small "brain-fart" on my part. Mind trying this branch: Thanks again for the great bug rapports and the sample project. Cheers! |
Hi @zenangst I did try your fix and yes it works correctly for the items selection. But it doesn't fix for me the problem with the navigation bar not updated when scrolling (switch between large title and standard title). I guess there is some issue with the wrapper view as for a UIViewController with the collection view inside it's working correctly. Only with UITableViewController
With UITableViewController and UICollectionViewController
|
@zocario it's me again! I think I figure it out based on this Stackoverflow thread - https://stackoverflow.com/a/52035243/65992 So I refactored the Mind taking this branch for a test-run to verify - Cheers! |
I've just tested your fix and it looks good to me! |
I'll merge and make a new version later today. Out and about with the family today, gonna get us some afternoon tea. 😎 |
@zocario |
Hello,
I have a new issue related to the last fix made for
UICollectionViewController
(viewWillAppear
not called).The did select item method isn't triggered in my
UICollectionViewController
subclass anymore after update to the last version of Family. Also the navigation bar doesn't update its large title to small title when scrolling (it works fine with only a table view).Steps to reproduce:
FamilyViewController
containing a view controller subclassingUICollectionViewController
collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
in yourUICollectionViewController
subclassWhats happens:
collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
method isn't called on theUICollectionViewController
subclass.What should happens:
collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
should be called correctly.Sample:
Test family collection view 2.zip
The text was updated successfully, but these errors were encountered: