[Bugfix] Mobile platform builds #11
@ -10,7 +10,7 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#if canImport(UIKit)
|
#if canImport(UIKit) && !os(watchOS)
|
||||||
import UIKit
|
import UIKit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ public protocol Router: AnyObject {
|
|||||||
|
|
||||||
// MARK: Functions
|
// MARK: Functions
|
||||||
|
|
||||||
#if canImport(UIKit)
|
#if canImport(UIKit) && !os(watchOS)
|
||||||
/// Present a view controller animatedly or not, depending on the given `animated` parameter, and also pass a closure that should be called on dismissal.
|
/// Present a view controller animatedly or not, depending on the given `animated` parameter, and also pass a closure that should be called on dismissal.
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - viewController: A `UIViewController` view controller instance to present.
|
/// - viewController: A `UIViewController` view controller instance to present.
|
||||||
@ -42,7 +42,7 @@ public protocol Router: AnyObject {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if canImport(UIKit)
|
#if canImport(UIKit) && !os(watchOS)
|
||||||
// MARK: - Router+Implementations
|
// MARK: - Router+Implementations
|
||||||
|
|
||||||
public extension Router {
|
public extension Router {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user