Skip to content

Commit 833cacc

Browse files
author
Christian Elies
committed
fix(swiftui): fixed availability of photo and video SwiftUI views for mac catalyst
1 parent 85c9822 commit 833cacc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/MediaSwiftUI/API/Photo/Photo+SwiftUI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Christian Elies on 02.12.19.
66
//
77

8-
#if canImport(SwiftUI) && !os(macOS)
8+
#if canImport(SwiftUI) && (!os(macOS) || targetEnvironment(macCatalyst))
99
import MediaCore
1010
import SwiftUI
1111

Sources/MediaSwiftUI/API/Video/Video+SwiftUI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Christian Elies on 02.12.19.
66
//
77

8-
#if canImport(SwiftUI) && !os(macOS)
8+
#if canImport(SwiftUI) && (!os(macOS) || targetEnvironment(macCatalyst))
99
import MediaCore
1010
import SwiftUI
1111

0 commit comments

Comments
 (0)