Hi dear Apple developers!
I need help to solve memory leak issue with CollectionView and UIContextMenuConfiguration I'm struggling few weeks with.
I have a fairly simple setup - Main ViewController and pushed ViewControllers with CollectionView within NavigationController.
All is Ok with memory during navigation back and forth until I use CollectionViewCell's Context Menu (calling contextMenuConfigurationForItemAt method and returning even blank ContextMenuConfiguration instance). So when I pop ViewController, objects are being kept in memory after that. I think called UIContextMenuConfiguration instance causes retain cycle. I just cannot find similar case or way to solve this.
One thing. I see deinit happens in popped ViewController but not with its CollectionView Cell.
Please help!
I need help to solve memory leak issue with CollectionView and UIContextMenuConfiguration I'm struggling few weeks with.
I have a fairly simple setup - Main ViewController and pushed ViewControllers with CollectionView within NavigationController.
All is Ok with memory during navigation back and forth until I use CollectionViewCell's Context Menu (calling contextMenuConfigurationForItemAt method and returning even blank ContextMenuConfiguration instance). So when I pop ViewController, objects are being kept in memory after that. I think called UIContextMenuConfiguration instance causes retain cycle. I just cannot find similar case or way to solve this.
One thing. I see deinit happens in popped ViewController but not with its CollectionView Cell.
Please help!