In the project, view->interactor->presenter-> view. There’s a retain cycle. But we cannot declare
weak var view: CreateIceCreamDisplayLogic, Since view is not a class. How to solve this?
Isn’t there any answer on this question? how can we avoid retain cycle?
Could you help here, please
Still figuring out how to implement router with passing data in that. Also, it’s not clear how to utilized SwiftUI StateObject/ObservedObject with all async code.
Even in the tutorial you instantiated ObservedObject in the view which is contradicts apple’s best practice. Probably should use StateObject instead.
Honestly, the architecture feels like fighting with SwiftUI, not helping to develop. Maybe it’s only my problem, but right now the simple app with network calls that I’m making with VIP is morphing to something weird between MVVM and VIP.