Skip to content

Commit

Permalink
RouterProtocol and Closable are separated now
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Ermolenko committed Feb 1, 2018
1 parent b3803cc commit ed25d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Routing/Routing/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<U>: RouterProtocol where U: UIViewController {
class Router<U>: RouterProtocol, Closable where U: UIViewController {
typealias V = U

weak var viewController: V?
Expand Down

0 comments on commit ed25d03

Please sign in to comment.