palasthotel / wind

dependency injection container in pure swift
9 stars 2 forks source link

Add Support for non-container-created singletons #4

Closed mkernel closed 7 years ago

mkernel commented 7 years ago

It would be handy if one could easily wrap UIKit components (UserDefaults, FileManager) and add those to the container. As they're created by the Framework, the normal singleton protocol won't do it.