From 907c5677a6a287b1fbb72b190421dbc83a1d57d0 Mon Sep 17 00:00:00 2001 From: Alexey Demin Date: Tue, 1 Jun 2021 11:51:28 -0700 Subject: [PATCH] Import condition fix. --- Sources/EnterpriseAppUpdater/AppUpdaterSwiftUI.swift | 2 +- Tests/EnterpriseAppUpdaterTests/AppUpdaterTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/EnterpriseAppUpdater/AppUpdaterSwiftUI.swift b/Sources/EnterpriseAppUpdater/AppUpdaterSwiftUI.swift index 6d57bd0..a0cd9e3 100644 --- a/Sources/EnterpriseAppUpdater/AppUpdaterSwiftUI.swift +++ b/Sources/EnterpriseAppUpdater/AppUpdaterSwiftUI.swift @@ -9,7 +9,7 @@ // you may not use this file except in compliance with the License. // -#if canImport(SwiftUI) +#if canImport(SwiftUI) && canImport(Combine) import SwiftUI @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) diff --git a/Tests/EnterpriseAppUpdaterTests/AppUpdaterTests.swift b/Tests/EnterpriseAppUpdaterTests/AppUpdaterTests.swift index bf21d7d..2b64c16 100644 --- a/Tests/EnterpriseAppUpdaterTests/AppUpdaterTests.swift +++ b/Tests/EnterpriseAppUpdaterTests/AppUpdaterTests.swift @@ -89,7 +89,7 @@ extension AppUpdaterTests { -#if canImport(SwiftUI) +#if canImport(SwiftUI) && canImport(Combine) import SwiftUI @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)