Skip to content

Commit 81c1126

Browse files
authored
Merge pull request #9 from mtj0928/watchOS-support
Fix build error in watchOS
2 parents cfbd2fe + 62c2f56 commit 81c1126

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/TypedNotifications/UIKit/UIApplication.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(UIKit)
1+
#if os(iOS) || os(visionOS) || os(tvOS) || targetEnvironment(macCatalyst)
22
import UIKit
33

44
extension UIApplication {

Sources/TypedNotifications/UIKit/UIResponder.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(UIKit) && !os(visionOS)
1+
#if os(iOS) || targetEnvironment(macCatalyst)
22
import UserInfoRepresentable
33
import UIKit
44

Sources/TypedNotifications/UIKit/UIScene.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(UIKit)
1+
#if os(iOS) || os(visionOS) || os(tvOS) || targetEnvironment(macCatalyst)
22
import UIKit
33

44
extension UIScene {

0 commit comments

Comments
 (0)