Skip to content

SwiftUI tvOS xcode15.0 b6

Alex Soto edited this page Aug 8, 2023 · 2 revisions

#SwiftUI.framework

diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI.h	2023-07-14 23:44:11
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI.h	2023-07-31 04:10:30
@@ -1,7 +1,19 @@
 // Copyright © 2015 Apple Inc. All rights reserved.
 
+#import <TargetConditionals.h>
+
 #if !__METAL_VERSION__
-# import <UIKit/UIKit.h>
+    #if TARGET_OS_OSX && __has_include(<AppKit/AppKit.h>)
+    # import <AppKit/AppKit.h>
+    #endif
+
+    #if !TARGET_OS_OSX && __has_include(<UIKit/UIKit.h>)
+    # import <UIKit/UIKit.h>
+    #endif
+
+    #if TARGET_OS_WATCH && __has_include(<WatchKit/WatchKit.h>)
+    # import <WatchKit/WatchKit.h>
+    #endif
 #else
 # include <SwiftUI/SwiftUI_Metal.h>
 #endif
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI_Metal.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI_Metal.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI_Metal.h	2023-07-14 23:44:11
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SwiftUI.framework/Headers/SwiftUI_Metal.h	2023-07-31 04:10:30
@@ -3,8 +3,10 @@
 #ifndef SWIFTUI_METAL_H
 #define SWIFTUI_METAL_H
 
-#if __METAL_VERSION__
+#import <TargetConditionals.h>
 
+#if !TARGET_OS_WATCH && __METAL_VERSION__
+
 #include <metal_stdlib>
 
 namespace SwiftUI {
@@ -27,5 +29,5 @@
 
 } // namespace SwiftUI
 
-#endif // __METAL_VERSION__
+#endif // !TARGET_OS_WATCH && __METAL_VERSION__
 #endif // SWIFTUI_METAL_H
Clone this wiki locally