Contents

init()

Creates an instance of the app using the body that you define for its content.

Declaration

@MainActor @preconcurrency init()

Discussion

Swift synthesizes a default initializer for structures that don’t provide one. You typically rely on the default initializer for your app.

See Also

Running an app