---
title: "playerViewController(_:willEndFullScreenPresentationWithAnimationCoordinator:)"
framework: avkit
role: symbol
role_heading: Instance Method
path: "avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:willendfullscreenpresentationwithanimationcoordinator:)"
---

# playerViewController(_:willEndFullScreenPresentationWithAnimationCoordinator:)

Tells the delegate when the player view controller is about to end full-screen display.

## Declaration

```swift
optional func playerViewController(_ playerViewController: AVPlayerViewController, willEndFullScreenPresentationWithAnimationCoordinator coordinator: any UIViewControllerTransitionCoordinator)
```

## Parameters

- `playerViewController`: The player view controller.
- `coordinator`: The transition coordinator to use when coordinating animations.

## See Also

### Responding to Full-Screen Presentations

- [playerViewController(_:willBeginFullScreenPresentationWithAnimationCoordinator:)](avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:willbeginfullscreenpresentationwithanimationcoordinator:).md)
- [playerViewController(_:restoreUserInterfaceForFullScreenExitWithCompletionHandler:)](avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:restoreuserinterfaceforfullscreenexitwithcompletionhandler:).md)
