WidgetKit macOS 12.3 to 13.0 API Differences

AccessoryWidgetBackground
Added AccessoryWidgetBackground
Added AccessoryWidgetBackground.init()
Added AccessoryWidgetBackground.body
Added AccessoryWidgetBackground.Body
IntentConfiguration
Modified IntentConfiguration
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

IntentRecommendation
Added IntentRecommendation
Added IntentRecommendation.init(intent:description:)
IntentTimelineProvider
Modified IntentTimelineProvider
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

StaticConfiguration
Modified StaticConfiguration
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

Timeline
Modified Timeline
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

TimelineEntry
Modified TimelineEntry
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

TimelineEntryRelevance
Modified TimelineEntryRelevance
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

TimelineProvider
Modified TimelineProvider
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

TimelineProviderContext
Modified TimelineProviderContext
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

Modified TimelineProviderContext.displaySize
Replacement
Frompublic let displaySize: CoreGraphics.CGSize
Topublic let displaySize: CoreFoundation.CGSize

TimelineReloadPolicy
Modified TimelineReloadPolicy
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

WidgetCenter
Modified WidgetCenter
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

Added WidgetCenter.invalidateConfigurationRecommendations()
WidgetFamily
Modified WidgetFamily
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

WidgetInfo
Modified WidgetInfo
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

WidgetPreviewContext
Modified WidgetPreviewContext
Replacement
From@available(iOS 14.0, macOS 11, *) @available(tvOS, unavailable) @available(watchOS, unavailable)
To@available(iOS 14.0, macOS 11.0, watchOS 9.0, *) @available(tvOS, unavailable)

WidgetRenderingMode
Added WidgetRenderingMode
Added WidgetRenderingMode.accented /* static */
Added WidgetRenderingMode.fullColor /* static */
Added WidgetRenderingMode.vibrant /* static */
Added WidgetRenderingMode.==(a:b:) /* static */