WidgetKit iOS 15.5 to 16.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)

Modified TimelineEntryRelevance.init(from:)
Replacement
Frompublic init(from: Swift.Decoder) throws
Topublic init(from: some Swift.Decoder) throws

Modified TimelineEntryRelevance.encode(to:)
Replacement
Frompublic func encode(to: Swift.Encoder) throws
Topublic func encode(to: some Swift.Encoder) throws

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)

Modified WidgetCenter.getCurrentConfigurations(_:)
Replacement
Frompublic func getCurrentConfigurations(_: @escaping () -> Swift.Void)
Topublic func getCurrentConfigurations(_: @escaping () -> Swift.Void)

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 */
Added WidgetRenderingMode.description