---
title: "init(_:sourceItem:actionHandler:)"
framework: tipkit
role: symbol
role_heading: Initializer
path: "tipkit/tipuipopoverviewcontroller/init(_:sourceitem:actionhandler:)"
---

# init(_:sourceItem:actionHandler:)

Initializes a popover controller with the specified tip.

## Declaration

```swift
@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.
