<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVViewport/portal",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVViewport(py)portal"
  },
  "title" : "portal"
}
-->

# portal

The viewport configuration to use when the player displays immersive content in a portal.

```
var portal: AVPortalViewport? { get set }
```

## Discussion

Set this property to customize how content appears within a portal frame. When this property is `nil`, the system uses default portal settings.

> Note: Spatial videos don’t support portal viewport settings.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)