Contents

init(_:sourceItem:actionHandler:)

Initializes a popover controller with the specified tip.

Declaration

@MainActor @preconcurrency convenience init(_ tip: any Tip, sourceItem: any UIPopoverPresentationControllerSourceItem, actionHandler: @escaping @MainActor @Sendable (Tips.Action) -> Void = { _ in })

Parameters

  • tip:

    The tip to display.

  • sourceItem:

    The item on which to anchor the tip popover.

  • actionHandler:

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