What's New / App UI: SwiftUI, AppKit & UIKit

What's new in WatchKit

~3 DeprecatedwatchOS

WatchKit is Apple's framework for building watchOS apps. It includes app lifecycle types such as WKApplication and WKExtension, with APIs for background work and snapshot refresh scheduling.

No new or removed APIs. Three scheduling methods are deprecated: WKExtension.scheduleSnapshotRefresh, WKApplication.scheduleBackgroundRefresh, and WKApplication.scheduleSnapshotRefresh.

Deprecated

3
func

WKApplication.scheduleBackgroundRefresh

DeprecatedwatchOS
open func scheduleBackgroundRefresh(withPreferredDate preferredFireDate: Date, userInfo: (any NSSecureCoding & NSObjectProtocol)?, scheduledCompletion: @escaping ((any Error)?) -> Void)
func

WKApplication.scheduleSnapshotRefresh

DeprecatedwatchOS
open func scheduleSnapshotRefresh(withPreferredDate preferredFireDate: Date, userInfo: (any NSSecureCoding & NSObjectProtocol)?, scheduledCompletion: @escaping ((any Error)?) -> Void)
DeprecatedSnapshots may no longer be manually scheduled.
func

WKExtension.scheduleSnapshotRefresh

DeprecatedwatchOS
open func scheduleSnapshotRefresh(withPreferredDate preferredFireDate: Date, userInfo: (any NSSecureCoding & NSObjectProtocol)?, scheduledCompletion: @escaping ((any Error)?) -> Void)
DeprecatedSnapshots may no longer be manually scheduled.

No APIs match your filter.

← More in App UI: SwiftUI, AppKit & UIKit