One Logo Pool Ball
_RealityKit_SwiftUI · IOS API REFERENCE

ObjectCapturePointCloudView

struct · iOS 17.0+ · SDK 27.1

@MainActor struct ObjectCapturePointCloudView

Renders the current state of the point cloud from an object capture session. This view renders a 3D visualization of the current session's point cloud. It includes a turntable gesture controller. This view allows the user to review the captured 3D model before finishing the capture and beginning object reconstruction.

Members (2)

method · iOS 18.0+

showShotLocations

TypeScript
showShotLocations(value?: boolean): Promise<ObjectCapturePointCloudView>
Swift declaration
@MainActor func showShotLocations(_ value: Bool = true) -> ObjectCapturePointCloudView

Shows the locations where shots have been taken. Example: ObjectCapturePointCloudView(session: mySession) .showShotLocations() It can also be passed a value if there is a state variable controlling it: @State var shouldShowShots: Bool = true ObjectCapturePointCloudView(session: mySession) .showShotLocations(shouldShowShots) Other modifiers can be chained to build the final view: ObjectCapturePointCloudView(session: mySession) .showShotLocations() .transition(.opacity)

init · iOS 17.0+

init

TypeScript
static init(session: ObjectCaptureSession): Promise<ObjectCapturePointCloudView>
Swift declaration
@MainActor init(session: ObjectCaptureSession)

Creates an object capture view from an existing session using the current segment's point cloud.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ObjectCapturePointCloudView.body

This protocol needs associated types that cannot yet cross the bridge.

All _RealityKit_SwiftUI types →