Skip to content

Instantly share code, notes, and snippets.

Working from home

Łukasz Śliwiński nonameplum

Working from home
Block or report user

Report or block nonameplum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nonameplum / Container.swift
Last active Jul 11, 2019
Very simple dependency container for swift
View Container.swift
import Foundation
public class Container {
//MARK:- Types
public enum ObjectLifeTime {
case persistent
case transient
private class Resolver {
let factory: (Container) -> Any
You can’t perform that action at this time.