Contents

AVViewport

A configuration object that manages viewport settings for different presentation modes.

Declaration

class AVViewport

Overview

Provides configuration options for how content is displayed in different viewing contexts. Use this object to customize the visual presentation of your content.

let portalViewport = AVPortalViewport()
portalViewport.aspectRatio = 2.39
playerViewController.viewport.portal = portalViewport

Topics

Configuring the portal viewport

See Also

visionOS playback