The problem is that Apple forgot to deallocate the object when closing the modal view.
In this case, my code clearly indicates, that the object must be deallocated when the modal presentation is dismissed. 🙂
If you have a better solution to this problem, I would be happy to explore it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: