One Logo Pool Ball
_SceneKit_SwiftUI · IOS API REFERENCE

SceneView.Options

struct · iOS 14.0+ · SDK 27.1

struct Options

Option set that's used to customize how the SceneView behaves

Members (7)

get · iOS 14.0+

jitteringEnabled

TypeScript
get jitteringEnabled(): Promise<SceneView_Options>
Swift declaration
static let jitteringEnabled: SceneView.Options

Specifies whether the receiver should jitter the rendered scene to reduce aliasing artifacts. The default is false.

get · iOS 14.0+

allowsCameraControl

TypeScript
get allowsCameraControl(): Promise<SceneView_Options>
Swift declaration
static let allowsCameraControl: SceneView.Options

Toggles whether the view allows the user to manipulate the camera with gestures or mouse Defaults to false.

get · iOS 14.0+

rendersContinuously

TypeScript
get rendersContinuously(): Promise<SceneView_Options>
Swift declaration
static let rendersContinuously: SceneView.Options

Toggles whether the view renders continuously at the desired frame rate. If set to false the view will redraw only when necessary. Defaults to false.

get · iOS 14.0+

autoenablesDefaultLighting

TypeScript
get autoenablesDefaultLighting(): Promise<SceneView_Options>
Swift declaration
static let autoenablesDefaultLighting: SceneView.Options

Specifies whether the receiver should automatically light up scenes that have no light source. The default is false.

get · iOS 14.0+

temporalAntialiasingEnabled

TypeScript
get temporalAntialiasingEnabled(): Promise<SceneView_Options>
Swift declaration
static let temporalAntialiasingEnabled: SceneView.Options

Specifies whether the receiver should reduce aliasing artifacts in real time based on temporal coherency. The default is false.

init · iOS 14.0+

init

TypeScript
init(rawValue: number): Promise<SceneView_Options>
Swift declaration
init(rawValue: Int)

Creates a new option set from the given raw value. This initializer always succeeds, even if the value passed as `rawValue` exceeds the static properties declared as part of the option set. This example creates an instance of `ShippingOptions` with a raw value beyond the highest element, with a bit mask that effectively contains all the declared static members. let extraOptions = ShippingOptions(rawValue: 255) print(extraOptions.isStrictSuperset(of: .all)) // Prints "true" - Parameter rawValue: The raw value of the option set to create. Each bit of `rawValue` potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the `OptionSet` type.

get · iOS 14.0+

rawValue

TypeScript
getRawValue($self: SceneView_Options): Promise<number>
Swift declaration
let rawValue: Int

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

Skipped declarations

No declarations were skipped in this snapshot.

All _SceneKit_SwiftUI types →