---
title: "retargetedPreview(with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitargetedpreview/retargetedpreview(with:)"
---

# retargetedPreview(with:)

Returns a targeted preview object with the same view and parameters, but with a different target container.

## Declaration

```swift
func retargetedPreview(with newTarget: UIPreviewTarget) -> UITargetedPreview
```

## Parameters

- `newTarget`: The new target for the existing view.

## Return Value

Return Value A new targeted preview object containing the specified target and the current view.
