Skip to content

Commit

Permalink
Remove Closable inheritance from Routerable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Ermolenko committed Sep 29, 2017
1 parent dbbafdb commit 8e72c8f
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 @@ -12,15 +12,15 @@ protocol Closable: class {
func close()
}

protocol Routerable: class, Closable {
protocol Routerable: class {
associatedtype V: UIViewController
weak var viewController: V? { get }

func open(_ presentedViewController: UIViewController?, transition: Transition)
func close(_ closedViewController: UIViewController?, transition: Transition)
}

class Router<U>: NSObject, Routerable, UINavigationControllerDelegate, UIViewControllerTransitioningDelegate where U: UIViewController {
class Router<U>: NSObject, Closable, Routerable, UINavigationControllerDelegate, UIViewControllerTransitioningDelegate where U: UIViewController {
typealias V = U

weak var viewController: U?
Expand Down

0 comments on commit 8e72c8f

Please sign in to comment.