Hi everyone,
Noticed that if you're passing more than 1 context with the same object through reloadRootPageControllers function in WKInterfaceController the passed context will never be deallocated from memory.
For example:
context will never be deallocated.
Source Code of the project which reproduces this issue.
Screenshot which shows zombie objects from the memory graph.
How to resolve it? Thanks in advance.
Noticed that if you're passing more than 1 context with the same object through reloadRootPageControllers function in WKInterfaceController the passed context will never be deallocated from memory.
For example:
Code Block let context = Context(name: "context") WKInterfaceController.reloadRootPageControllers(withNames: ["first", "second"], contexts: [context, context], orientation: .horizontal, pageIndex: 0)
context will never be deallocated.
Source Code of the project which reproduces this issue.
Screenshot which shows zombie objects from the memory graph.
How to resolve it? Thanks in advance.