As we are not allowed to invoke UIApplication.shared.delegate on anything but the main thread, we need some workaround, especially for the other derivatives, like macOS, tvOS, etc.!
Thus, we use some kind of dirty static variable to get along with those issues.
Besides these changes, I also include lazy injection and bit of syntactic sugar for that.
As we are not allowed to invoke
UIApplication.shared.delegate
on anything but the main thread, we need some workaround, especially for the other derivatives, like macOS, tvOS, etc.!Thus, we use some kind of dirty static variable to get along with those issues.
Besides these changes, I also include lazy injection and bit of syntactic sugar for that.