---
title: "adornmentFrame(for:)"
framework: paperkit
role: symbol
role_heading: Instance Method
path: "paperkit/papermarkupviewcontroller/adornmentframe(for:)"
---

# adornmentFrame(for:)

Returns the current frame of the specified adornment.

## Declaration

```swift
@MainActor @preconcurrency func adornmentFrame(for adornmentID: UUID) -> CGRect?
```

## Parameters

- `adornmentID`: The ID of the MarkupAdornment whose frame you want to retrieve.

## Return Value

Return Value The frame of the adornment in the coordinate system of this view controller’s view, or nil if the canvas does not display the adornment or cannot determine its frame.

## Discussion

Discussion This method calculates the visual frame of an adornment based on its anchor position, image size, attachment point, zoom scale and content offset.

## See Also

### Managing adornments

- [adornments](paperkit/papermarkupviewcontroller/adornments.md)
- [frame(forAdornmentWithID:)](paperkit/papermarkupviewcontroller/frame(foradornmentwithid:).md)
