Skip to content

Commit 21352e1

Browse files
committed
[Swift 3] Allow Routing Callbacks to Escape
1 parent a9b5d83 commit 21352e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ReSwiftRouter/Routable.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ public protocol Routable {
1313
func pushRouteSegment(
1414
_ routeElementIdentifier: RouteElementIdentifier,
1515
animated: Bool,
16-
completionHandler: RoutingCompletionHandler) -> Routable
16+
completionHandler: @escaping RoutingCompletionHandler) -> Routable
1717

1818
func popRouteSegment(
1919
_ routeElementIdentifier: RouteElementIdentifier,
2020
animated: Bool,
21-
completionHandler: RoutingCompletionHandler)
21+
completionHandler: @escaping RoutingCompletionHandler)
2222

2323
func changeRouteSegment(
2424
_ from: RouteElementIdentifier,
2525
to: RouteElementIdentifier,
2626
animated: Bool,
27-
completionHandler: RoutingCompletionHandler) -> Routable
27+
completionHandler: @escaping RoutingCompletionHandler) -> Routable
2828

2929
}
3030

@@ -33,22 +33,22 @@ extension Routable {
3333
public func pushRouteSegment(
3434
_ routeElementIdentifier: RouteElementIdentifier,
3535
animated: Bool,
36-
completionHandler: RoutingCompletionHandler) -> Routable {
36+
completionHandler: @escaping RoutingCompletionHandler) -> Routable {
3737
fatalError("This routable cannot change segments. You have not implemented it.")
3838
}
3939

4040
public func popRouteSegment(
4141
_ routeElementIdentifier: RouteElementIdentifier,
4242
animated: Bool,
43-
completionHandler: RoutingCompletionHandler) {
43+
completionHandler: @escaping RoutingCompletionHandler) {
4444
fatalError("This routable cannot change segments. You have not implemented it.")
4545
}
4646

4747
public func changeRouteSegment(
4848
_ from: RouteElementIdentifier,
4949
to: RouteElementIdentifier,
5050
animated: Bool,
51-
completionHandler: RoutingCompletionHandler) -> Routable {
51+
completionHandler: @escaping RoutingCompletionHandler) -> Routable {
5252
fatalError("This routable cannot change segments. You have not implemented it.")
5353
}
5454

0 commit comments

Comments
 (0)