---
title: AVPortalViewport
framework: avkit
role: symbol
role_heading: Class
path: avkit/avportalviewport
---

# AVPortalViewport

## Declaration

```swift
class AVPortalViewport
```

## Overview

Overview A viewport configuration for displaying content in portals. AVPortalViewport defines the visual parameters for content displayed within a portal frame. Use this configuration to create cinematic viewing experiences with custom framing. 		Portal viewports allow you to control how immersive content is framed and 		presented to users. You can specify the aspect ratio of the portal frame to 		achieve the desired visual effect.

When properties are not explicitly set, the system provides sensible defaults: 		- Aspect Ratio: Defaults to 16:9 (1.78) for standard widescreen content

Spatial videos are not supported in portal viewports.

## Topics

### Configuring the aspect ratio

- [aspectRatio](avkit/avportalviewport/aspectratio-4drnq.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### visionOS playback

- [Playing immersive media with AVKit](avkit/playing-immersive-media-with-avkit.md)
- [Creating a multiview video playback experience in visionOS](avkit/creating-a-multiview-video-playback-experience-in-visionos.md)
- [Adopting the system player interface in visionOS](avkit/adopting-the-system-player-interface-in-visionos.md)
- [Trimming and exporting media in visionOS](avkit/trimming-and-exporting-media-in-visionos.md)
- [AVPlayerViewController](avkit/avplayerviewcontroller.md)
- [AVPlayerViewControllerDelegate](avkit/avplayerviewcontrollerdelegate.md)
- [AVExperienceController](avkit/avexperiencecontroller.md)
- [AVMultiviewManager](avkit/avmultiviewmanager.md)
- [AVGroupExperienceCoordinator](avkit/avgroupexperiencecoordinator.md)
- [AVViewport](avkit/avviewport.md)
- [Third-party casting support](avkit/third-party-casting-support.md)
