Post

Replies

Boosts

Views

Activity

Comment on SwiftUI View leaks in iOS 17
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.
Nov ’23
Comment on SwiftUI View leaks in iOS 17
@bodich Once again, this problem is under Apple's responsibility. It will be fixed when Apple deems it necessary to release a fix update... A temporary solution is to use a StateObject in the modal views of your project (this is what I do), religion does not prohibit this. 🙂
Nov ’23