Contents

init(_:id:content:)

Creates a utility window with a title and identifier.

Declaration

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

Parameters

  • title:

    The Text view to use in the utility window’s title bar. Provide a title that describes the purpose of the utility window.

  • id:

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

  • content:

    The view content to display in the utility window.

Discussion