Contents

isContinuousAutoFocusTrackingSubjectAcquired

Indicates whether the device is actively tracking a subject in the scene to maintain focus.

Declaration

var isContinuousAutoFocusTrackingSubjectAcquired: Bool { get }

Discussion

Returns true when the capture device is actively tracking a subject in the scene, and false otherwise. The subject is initially identified by focusPointOfInterest when focus mode is set to AVCaptureFocusModeContinuousAutoFocus with isContinuousAutoFocusTrackingEnabled set to true. This property is key-value observable and reflects only whether a subject is actively tracked, not which one. To identify the tracked subject, include focusTrackedObject in the metadataObjectTypes of AVCaptureMetadataOutput. The AVMetadataFocusTrackedObject delivered by the metadata output represents the subject currently tracked for continuous autofocus.