Thanks for showing your code and I could not reproduce the issue you described.
Whether I include your code into a sample code of CollectionView, memory consumption does not show significant difference.
One thing. I see deinit happens in popped ViewController but not with its CollectionView Cell.
One possibility, your CollectionView Cell is causing the issue.
Can you create a brand-new project, which is minimized just to reproduce the issue, and show full code of it?
Steps needed to reproduce the issue would also be welcome.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: