One Logo Pool Ball
_HomeKit_SwiftUI · IOS API REFERENCE

CameraView

struct · iOS 14.0+ · SDK 27.1

@MainActor @preconcurrency struct CameraView

A `CameraView` renders a particular `HMCameraSource`.

Members (1)

init · iOS 14.0+

init

TypeScript
static init(source: _HomeKit_HMCameraSource): Promise<CameraView>
Swift declaration
nonisolated init(source: HMCameraSource)

Creates a new instance to render a particular `HMCameraSource`. - Parameters: - source: The `HMCameraSource` to render

Skipped declarations

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

CameraView.body

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

All _HomeKit_SwiftUI types →