I am having a weird issue with weak reference. I am using a coordinator pattern and child VCs are communicating with coordinator through delegates. Whenever I am pushing a new VC to navigation stack, I set vc's delegate to conforming coordinator. On iOS 13/14 everything works perfect, but when testing on iOS 12 device, the reference is lost. When removing 'weak' from delegate variable, everything works, but this solution is not optimal.
I use swift 5 and I really hope it won't be an issue. Please help ;(
Problem fixed, I didn't keep the reference to my main coordinator which led to this problem. On iOS 13 in SceneDelegate it was kept, I forgot to do the same in App Delegate