Hello,
I want to implement a footer supplementary view in a collection view in my app. I followed the example in the Modern Collection Views sample code and indeed the footer shows up perfectly.
The problem arises when I implement a UIRefreshControl for the same collection view. This refresh control requests to 'reaply' the snapshot to the collection view. After this and several refreshes, all supplementary views show up perfectly again. However, when I check the 'Debug Memory Graph' section, I can see about 30-50 iterations of the custom Supplementary View.
I added a deinit code within the custom supplementary view to check if it is called after reaplying the snapshot. It seems that it is applied only after 30-50 iterations of the custom supplementary views is reached in the Memory Graph.
Is this a normal behaviour?
Thank you.
I want to implement a footer supplementary view in a collection view in my app. I followed the example in the Modern Collection Views sample code and indeed the footer shows up perfectly.
The problem arises when I implement a UIRefreshControl for the same collection view. This refresh control requests to 'reaply' the snapshot to the collection view. After this and several refreshes, all supplementary views show up perfectly again. However, when I check the 'Debug Memory Graph' section, I can see about 30-50 iterations of the custom Supplementary View.
I added a deinit code within the custom supplementary view to check if it is called after reaplying the snapshot. It seems that it is applied only after 30-50 iterations of the custom supplementary views is reached in the Memory Graph.
Is this a normal behaviour?
Thank you.