public protocol AP {
var name: String {get}
}
public class A : AP {
public var name: String = "Test"
}
var container = Container()
container.register(AP.self, creator: { _ in A()})
var instance = container.resolve(AP.self)
-
Notifications
You must be signed in to change notification settings - Fork 0
andrejs-mamontovs/ContainerSwift
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Lightweight Swift implementation of IoC Container
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published