Contents

init(_:id:content:)

Creates a window with a title and an identifier.

Declaration

init(_ title: Text, id: String, @ViewBuilder content: () -> Content)

Parameters

  • title:

    The Text view to use for the window’s title in system menus and in the window’s title bar. Provide a title that describes the purpose of the window.

  • id:

    A unique string identifier that you can use to open the window.

  • content:

    The view content to display in the window.

Discussion

The window displays the view that you specify.