Xcode 12 iOS 14 Widget without SwiftUI

Viewed 5620

Is it possible to create Xcode widget in Xcode 12 but without the use of SwiftUI and instead use XIB files to construct the Widget UI?

2 Answers

No, due to performance and battery life concerns, WidgetKit only works with SwiftUI.

https://developer.apple.com/documentation/widgetkit

You configure the widget with a timeline provider, and use SwiftUI views to display the widget’s content. The timeline provider tells WidgetKit when to update your widget’s content.

Related