Skip to content

Commit 2bd4640

Browse files
committed
Add URLConvertible type alias to URLNavigator class
1 parent 9af0ed8 commit 2bd4640

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/URLNavigator.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
import UIKit
2424

25+
/// A typealias for avoiding namespace conflict.
26+
public typealias _URLConvertible = URLConvertible
27+
2528
/// URLNavigator provides an elegant way to navigate through view controllers by URLs. URLs should be mapped by using
2629
/// `URLNavigator.map(_:_:)` function.
2730
///
@@ -57,6 +60,9 @@ import UIKit
5760
/// - seealso: `URLNavigable`
5861
open class URLNavigator {
5962

63+
/// A typealias for avoiding namespace conflict.
64+
public typealias URLConvertible = _URLConvertible
65+
6066
/// A closure type which has URL and values for parameters.
6167
public typealias URLOpenHandler = (_ url: URLConvertible, _ values: [String: Any]) -> Bool
6268

0 commit comments

Comments
 (0)