From 0a2f7ca9c09dbef7f1010efb35dedc5deb871d97 Mon Sep 17 00:00:00 2001 From: Patrik Svoboda Date: Sat, 2 Nov 2019 21:06:08 +0100 Subject: [PATCH 1/3] attempt to fix archiving --- Sources/ImageIOSwiftUI/Derived.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/ImageIOSwiftUI/Derived.swift b/Sources/ImageIOSwiftUI/Derived.swift index 72160e2..56d80a8 100644 --- a/Sources/ImageIOSwiftUI/Derived.swift +++ b/Sources/ImageIOSwiftUI/Derived.swift @@ -1,3 +1,4 @@ +#if canImport(SwiftUI) && canImport(Combine) import Combine import SwiftUI @@ -111,3 +112,4 @@ extension Derived.Lazy: ErasedObservableObject where Derived: ObservableObject { .eraseToAnyPublisher() } } +#endif From abd79dd80954b89ad48edc86f3c8fb9e1f4f8f77 Mon Sep 17 00:00:00 2001 From: Patrik Svoboda Date: Sat, 2 Nov 2019 21:12:40 +0100 Subject: [PATCH 2/3] fix this too --- Sources/ImageIOSwiftUI/URLImageSourceView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/ImageIOSwiftUI/URLImageSourceView.swift b/Sources/ImageIOSwiftUI/URLImageSourceView.swift index d3ec072..90f699b 100644 --- a/Sources/ImageIOSwiftUI/URLImageSourceView.swift +++ b/Sources/ImageIOSwiftUI/URLImageSourceView.swift @@ -1,3 +1,4 @@ +#if canImport(SwiftUI) && canImport(Combine) import Combine import ImageIOSwift import SwiftUI @@ -108,3 +109,4 @@ public struct URLImageSourceView: View { } } } +#endif From dcb891e011a2c031db572ca8a69bb9e6db81e3f8 Mon Sep 17 00:00:00 2001 From: Patrik Svoboda Date: Sat, 2 Nov 2019 21:20:23 +0100 Subject: [PATCH 3/3] and fix this too I guess --- Sources/ImageIOSwiftUI/ImageSourceView.swift | 2 ++ Sources/ImageIOSwiftUI/StaticImageSourceView.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Sources/ImageIOSwiftUI/ImageSourceView.swift b/Sources/ImageIOSwiftUI/ImageSourceView.swift index 615cf34..244f510 100644 --- a/Sources/ImageIOSwiftUI/ImageSourceView.swift +++ b/Sources/ImageIOSwiftUI/ImageSourceView.swift @@ -1,3 +1,4 @@ +#if canImport(SwiftUI) && canImport(Combine) import ImageIOSwift import SwiftUI @@ -77,3 +78,4 @@ public struct ImageSourceView: View { } } } +#endif diff --git a/Sources/ImageIOSwiftUI/StaticImageSourceView.swift b/Sources/ImageIOSwiftUI/StaticImageSourceView.swift index 175b516..a420442 100644 --- a/Sources/ImageIOSwiftUI/StaticImageSourceView.swift +++ b/Sources/ImageIOSwiftUI/StaticImageSourceView.swift @@ -1,3 +1,4 @@ +#if canImport(SwiftUI) && canImport(Combine) import ImageIOSwift import SwiftUI @@ -107,3 +108,4 @@ public struct StaticImageSourceView: View { ) } } +#endif