---
title: availableViewingModes
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/imagepresentationcomponent/availableviewingmodes
---

# availableViewingModes

The currently valid viewing modes for the image being presented.

## Declaration

```swift
var availableViewingModes: Set<ImagePresentationComponent.ViewingMode> { get }
```

## Discussion

Discussion note: This property returns the set of modes that are currently available. The returned set of modes will not contain spatial 3D viewing modes if the component is presenting a Spatial3DImage that has not yet generated its spatial 3D representation.

## See Also

### Setting and discovering viewing modes

- [ImagePresentationComponent.ViewingMode](realitykit/imagepresentationcomponent/viewingmode-swift.struct.md)
- [viewingMode](realitykit/imagepresentationcomponent/viewingmode-swift.property.md)
- [desiredViewingMode](realitykit/imagepresentationcomponent/desiredviewingmode.md)
- [supportedViewingModes(for:)](realitykit/imagepresentationcomponent/supportedviewingmodes(for:)-7za1y.md)
- [supportedViewingModes(for:)](realitykit/imagepresentationcomponent/supportedviewingmodes(for:)-7za1y.md)
