init() Creates a widget using body as its content. Declaration@MainActor @preconcurrency init() See AlsoRunning a widgetmain()