---
title: RealityViewLayoutOption
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/realityviewlayoutoption
---

# RealityViewLayoutOption

Options that specify the frame sizing and content alignment option for RealityView.

## Declaration

```swift
struct RealityViewLayoutOption
```

## Mentioned in

Controlling the layout behavior of a reality view

## Overview

Overview Pass in a RealityViewLayoutOption when using the realityViewLayoutBehavior(_:) modifier: struct ModelWrapperView: View {     let modelName: String     var body: some View {         RealityView { content in             let model = try? await Entity(named: modelName)             if let model {                 content.add(model)             }         }         .realityViewLayoutBehavior(.fixedSize)     } }

## Topics

### Type Properties

- [centered](realitykit/realityviewlayoutoption/centered.md)
- [fixedSize](realitykit/realityviewlayoutoption/fixedsize.md)
- [flexible](realitykit/realityviewlayoutoption/flexible.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)

## See Also

### SwiftUI scene presentation

- [Controlling the layout behavior of a reality view](realitykit/controlling-the-layout-behavior-of-a-realityview.md)
- [RealityView](realitykit/realityview.md)
- [RealityViewContent](realitykit/realityviewcontent.md)
- [RealityViewCameraContent](realitykit/realityviewcameracontent.md)
- [RealityViewContentProtocol](realitykit/realityviewcontentprotocol.md)
- [RealityViewDefaultPlaceholder](realitykit/realityviewdefaultplaceholder.md)
- [RealityViewEntityCollection](realitykit/realityviewentitycollection.md)
- [EntityCollection](realitykit/entitycollection.md)
