init(_:arrowEdge:action:)
Creates a tip view with an optional arrow.
Declaration
@MainActor @preconcurrency init(_ tip: (any Tip)?, arrowEdge: Edge? = nil, action: @escaping @MainActor @Sendable (Tips.Action) -> Void = { _ in }) where Content == AnyTipDiscussion
arrowEdge: The edge of the tip view that displays the arrow.
action: The closure to perform when the user triggers a tip’s action.
Overview
Use a TipView when you want to indicate the UI element to which the tip applies, but don’t want to directly anchor the tip view to that element. Use the popoverTip(_:arrowEdge:action:) to anchor your tip to an element.