8000 GitHub - andrejs-mamontovs/ContainerSwift: Lightweight Swift implementation of IoC Container
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andrejs-mamontovs/ContainerSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight Swift implementation of Inversion of Control Container

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)

About

Lightweight Swift implementation of IoC Container

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0