diff --git a/Routing/Routing/Router.swift b/Routing/Routing/Router.swift index 8a811bd..357a705 100644 --- a/Routing/Routing/Router.swift +++ b/Routing/Routing/Router.swift @@ -11,14 +11,14 @@ protocol Closable: class { func close() } -protocol RouterProtocol: Closable { +protocol RouterProtocol: class { associatedtype V: UIViewController weak var viewController: V? { get } func open(_ viewController: UIViewController, transition: Transition) } -class Router: RouterProtocol where U: UIViewController { +class Router: RouterProtocol, Closable where U: UIViewController { typealias V = U weak var viewController: V?