One Logo Pool Ball
_RealityKit_SwiftUI · IOS API REFERENCE

RealityViewEnvironment

struct · iOS 18.0+ · SDK 27.1

struct RealityViewEnvironment

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

Members (2)

static · iOS 18.0+

skybox

TypeScript
static skybox(skybox: _RealityFoundation_EnvironmentResource): RealityViewEnvironment
Swift declaration
static func skybox(_ skybox: EnvironmentResource) -> RealityViewEnvironment

The view uses a skybox environment as the background.

get · iOS 18.0+

default

TypeScript
static get default(): RealityViewEnvironment
Swift declaration
static var `default`: RealityViewEnvironment { get }

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

Skipped declarations

No declarations were skipped in this snapshot.

All _RealityKit_SwiftUI types →