Contents

configureTip(_:arrowEdge:actionHandler:)

Configures a reusable view with a tip view embedded.

Declaration

@discardableResult @MainActor @preconcurrency final func configureTip(_ tip: any Tip, arrowEdge: Edge? = nil, actionHandler: @escaping @MainActor @Sendable (Tips.Action) -> Void = { _ in }) -> Self

Parameters

  • tip:

    The tip to display.

  • arrowEdge:

    The edge of the tip view that displays the arrow.

  • actionHandler:

    The closure to perform when the user triggers a tip’s action.

Return Value

A collection reusable view that embeds the specified tip.