Skip to content

Commit 48b3716

Browse files
committed
Added preprocessor macros for Swift Concurrency availability
1 parent 0846200 commit 48b3716

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/API/YouTubePlayerAPI+Concurrency.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if compiler(>=5.5) && canImport(_Concurrency)
12
import Foundation
23

34
// MARK: - YouTubePlayer360DegreePerspectiveAPI+Concurrency
@@ -170,3 +171,4 @@ public extension YouTubePlayerVideoInformationAPI {
170171
}
171172

172173
}
174+
#endif

0 commit comments

Comments
 (0)