Skip to content

WidgetKit macOS xcode14.2 rc

Alex Soto edited this page Dec 7, 2022 · 3 revisions

#WidgetKit.framework

diff -ruN /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WidgetKit.framework/Headers/WGWidgetDefines.h /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WidgetKit.framework/Headers/WGWidgetDefines.h
--- /Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WidgetKit.framework/Headers/WGWidgetDefines.h	2022-09-30 06:15:38.000000000 -0400
+++ /Applications/Xcode_14.2.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WidgetKit.framework/Headers/WGWidgetDefines.h	2022-11-10 01:53:06.000000000 -0500
@@ -11,4 +11,14 @@
 extern NSString * const WGWidgetUserInfoKeyFamily NS_REFINED_FOR_SWIFT;
 extern NSString * const WGWidgetUserInfoKeyActivityID NS_REFINED_FOR_SWIFT;
 
+/// A string that the system passes to the app on launch from a Live Activity that doesn't provide
+/// a URL.
+///
+/// In many cases, you use  <doc://com.apple.documentation/documentation/swiftui/view/widgeturl(_:)>
+/// to allow users to tap a Live Activity and open a screen in the app with functionality that best fits the
+/// Live Activity. If you don't use the `widgetURL(_:)` modifier to provide a URL, the system launches
+/// your app and passes `NSUserActivityTypeLiveActivity` as the <doc://com.apple.documentation/documentation/foundation/nsuseractivity/1409611-activitytype>
+/// of <doc://com.apple.documentation/documentation/foundation/nsuseractivity>
+/// upon launch. Check for this value on launch to open a screen in your app that fits the context of the
+/// active Live Activity.
 extern NSString * const NSUserActivityTypeLiveActivity;
Clone this wiki locally