From a2d6f589f5f1fd052a74ad1fa03beda2c1333a62 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Tue, 25 Apr 2023 14:44:10 +0200 Subject: [PATCH] Fixed a compilation issue on the watchOS platform in the Router protocol, as it seems the UIKit framework can also be imported on the mentioned platform (?!). --- Sources/Coordination/Protocols/Router.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Coordination/Protocols/Router.swift b/Sources/Coordination/Protocols/Router.swift index 121bdfa..4943224 100644 --- a/Sources/Coordination/Protocols/Router.swift +++ b/Sources/Coordination/Protocols/Router.swift @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -#if canImport(UIKit) +#if canImport(UIKit) && !os(watchOS) import UIKit #endif @@ -23,7 +23,7 @@ public protocol Router: AnyObject { // 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. /// - Parameters: /// - 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 public extension Router {