<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ImagePresentationComponent/supportedViewingModes(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation26ImagePresentationComponentV21supportedViewingModes3forShyAC0G4ModeVGSo16CGImageSourceRefa_tFZ::OverloadGroup"
  },
  "title" : "supportedViewingModes(for:)"
}
-->

# supportedViewingModes(for:)

The viewing modes supported by the provided image source.

```
static func supportedViewingModes(for imageSource: CGImageSource) -> Set<ImagePresentationComponent.ViewingMode>
```

## Discussion> Note: This method returns the viewing modes that will be supported
> if you initialize an `ImagePresentationComponent` with this image source
> directly via `init(imageSource: CGImageSource)`.

The returned set of viewing modes will never include the `.spatial3D` or `.spatial3DImmersive` viewing modes,
which are only supported when initializing an `ImagePresentationComponent` with a `Spatial3DImage`.

---

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)