diff --git a/Package.swift b/Package.swift index d9b5d11..daa1b4b 100644 --- a/Package.swift +++ b/Package.swift @@ -5,6 +5,9 @@ import PackageDescription let package = Package( name: "Swexy", + platforms: [ + .iOS(.v13), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6) + ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( diff --git a/Sources/Swexy/Combine/SubjectStream.swift b/Sources/Swexy/Combine/SubjectStream.swift index 64ece9b..8f8fe82 100644 --- a/Sources/Swexy/Combine/SubjectStream.swift +++ b/Sources/Swexy/Combine/SubjectStream.swift @@ -5,8 +5,6 @@ // Created by Eric Rabil on 8/24/21. // -#if canImport(Combine) - import Foundation import Combine @@ -14,7 +12,6 @@ import Combine @_silgen_name("dispatch_get_current_queue") func dispatch_get_current_queue() -> DispatchQueue -@available(macOS 10.15, iOS 13.0, *) public class SubjectStream { private let subject = PassthroughSubject() private let publisher: Publishers.Share> @@ -86,4 +83,3 @@ public extension SubjectStream { return unsubscribe } } -#endif