---
title: "finalFrame(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewcontrollercontexttransitioning/finalframe(for:)"
---

# finalFrame(for:)

Returns the ending frame rectangle for the specified view controller’s view.

## Declaration

```swift
func finalFrame(for vc: UIViewController) -> CGRect
```

## Parameters

- `vc`: The view controller whose frame rectangle you want.

## Return Value

Return Value The frame rectangle for the view or CGRectZero if the frame rectangle is not known or the view is not visible.

## Discussion

Discussion The rectangle returned by this method represents the size of the corresponding view at the end of the transition. For the view being covered during the presentation, the value returned by this method might be CGRectZero but it might also be a valid frame rectangle.

## See Also

### Getting the transition frame rectangles

- [initialFrame(for:)](uikit/uiviewcontrollercontexttransitioning/initialframe(for:).md)
