<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/RealityViewEnvironment",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI0A15ViewEnvironmentV"
  },
  "title" : "RealityViewEnvironment"
}
-->

# RealityViewEnvironment

A struct that determines the background and default lighting properties for a reality view.

```
struct RealityViewEnvironment
```

## Topics

### Setting the environment background

[`static var `default`: RealityViewEnvironment`](/documentation/RealityKit/RealityViewEnvironment/default)

The view uses any background style you apply via the view’s background style.

[`static func skybox(EnvironmentResource) -> RealityViewEnvironment`](/documentation/RealityKit/RealityViewEnvironment/skybox(_:))

The view uses a skybox environment as the background.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)