Contents

setFramingMode(_:)

Customize the dock accessory’s tracking behavior.

Declaration

final func setFramingMode(_ mode: DockAccessory.FramingMode) async throws

Parameters

Discussion

Use this method to change where DockKit places a subject within the frame. For example, a face may be on the left or right side within the video. If you disable system tracking, this setting applies locally to the current dock accessory only. Otherwise, this setting applies to any active camera stream.

Set the frame mode to the desired value before performing your own custom tracking.

The default is DockAccessory.FramingMode.automatic. See DockAccessory.FramingMode for other values you can use to override.

See Also

Setting framing mode