Liftric / DIKit

Dependency Injection Framework for Swift, inspired by KOIN.
MIT License
102 stars 17 forks source link

Lazy injection and new container resolvement #31

Closed benjohnde closed 5 years ago

benjohnde commented 5 years ago

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.