init()
Creates a widget bundle using the bundle’s body as its content.
Availability 有効性
Technology
static func main()
Because you precede your Widget
conformer’s declaration with the @main attribute, the system calls your widget bundle’s main()
method to launch the widget bundle. SwiftUI provides a default implementation of the method that manages the launch process in a platform-appropriate way.
init()