From ed25d03696a75478043863fd0f7e6f8c5890ac6c Mon Sep 17 00:00:00 2001 From: Nikita Ermolenko Date: Thu, 1 Feb 2018 14:40:46 +0600 Subject: [PATCH] RouterProtocol and Closable are separated now --- Routing/Routing/Router.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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?