How to preview and debug WidgetKit views
SwiftUI offers an easy way to preview changes in your views without compiling and running the application. You can use the same functionality for WidgetKit....
WidgetKit is a framework to build widgets for iPhones, iPads, and macs. It is built on top of SwiftUI. WidgetKit, the same as SwiftUI, is a declarative framework that made widgets energy efficient.