Contents

main()

The main entry point for an app extension that doesn’t present any UI.

Declaration

@MainActor @preconcurrency static func main() throws

Discussion

Don’t call this method directly. When the host launches your app extension in a new process, the system calls this method to create your custom AppExtension type and prepare your extension for requests from the host app.

See Also

Running the main event loop