Feedback/DSTooltip

DSTooltip

feedback
since v2.0

Small informational popover that appears on long-press (iOS) or hover (macOS). Disappears automatically after a timeout.

iOS 17+macOS 14+

Purpose

Explain icon buttons, abbreviations, and non-obvious UI elements without cluttering the layout.

Interactive Reference

Live showroom

Need the full visual surface?

Screenshots do not scale well across every component, state, and variant. For the real interactive reference, import the package and launch DSShowcaseRoot().

Best for exploring:

variants, states, categories, and real app examples in one place.

Props

PropTypeDefaultDescription
contentreqStringTooltip text.
positionDSTooltipPosition.top.top, .bottom, .leading, .trailing.
content (ViewBuilder)reqViewBuilderThe view to attach the tooltip to.

Examples

Icon button tooltip

Tooltip on an icon-only button.

swift
DSTooltip("Share with team") {
    DSIconButton(icon: "square.and.arrow.up", action: share)
}

Related Components