I started resolving these (https://github.com/AdaSupport/ios-sdk/pull/24) but realized that this would likely break the scenario of launching the view controller multiple times from the same AdaWebHost instance. I would prefer to use AdaWebHost as a non singleton instance but the retain cycles currently prevent that.
There are several retain cycles in AdaWebHost:
reachability.whenReachable
closureDispatchQueue.main.asyncAfter
closureuserContentController.add(self, name: "...")
(x3)I started resolving these (https://github.com/AdaSupport/ios-sdk/pull/24) but realized that this would likely break the scenario of launching the view controller multiple times from the same
AdaWebHost
instance. I would prefer to useAdaWebHost
as a non singleton instance but the retain cycles currently prevent that.