Contents

help(_:)

Adds help text to a tab using a text view that you provide.

Declaration

nonisolated func help(_ text: Text) -> some TabContent<Self.TabValue>

Parameters

  • text:

    The Text view to use as help.

Discussion

Adding help to a tab configures the tab’s accessibility hint and its help tag (also called a tooltip) in macOS or visionOS. For more information on using help tags, see Offering help in the Human Interface Guidelines.

TabView {
    Tab("List", systemImage: "list.dash") {
        ListView()
    }
    .help(Text("Display symbols in list format"))
}

See Also

Configuring tab content