Type Method 型メソッド

main()

Initializes and runs the widget.

Declaration 宣言

static func main()

Overview 概要

Because you precede your Widget conformer’s declaration with the @main attribute, the system calls your widget’s main() method to launch the widget. SwiftUI provides a default implementation of the method that manages the launch process in a platform-appropriate way.

See Also 参照

Running a Widget