isStillImageStabilizationEnabled
A Boolean value indicating whether this capture uses image stabilization.
Declaration
var isStillImageStabilizationEnabled: Bool { get }Discussion
This property corresponds to the AVCapturePhotoSettings property isAutoStillImageStabilizationEnabled.
When this value is true, the device automatically applies stabilization in low-light conditions to counteract hand shake. Automatic stabilization always includes digital image stabilization, and may also include optical lens stabilization, based on the current device.
If you specify automatic stabilization when requesting a capture, the device automatically chooses whether to use image stabilization based on the scene contents at the moment of capture. Therefore, you don’t know whether the system uses stabilization until right before the moment of capture. When the photo output calls your photoOutput(_:willBeginCaptureFor:) method (or other delegate methods that occur later in the capture process), you can use this property to determine whether stabilization is active.