Docs
Components/Layout/Tooltip

Tooltip

Floating hint on hover or long-press.

s0 add tooltip

Usage

S0.Button("Save", action: { })
    .s0Tooltip("Save your changes")
Image(systemName: "info.circle")
    .s0Tooltip("More information", edge: .bottom)

Parameters

NameTypeDefaultDescription
messageStringTooltip text to display.
edgeTooltipEdge.topPreferred edge for placement: .top, .bottom, .leading, .trailing.