Type Property


A special constant representing the current lens position.


class let currentLensPosition: Float


Pass this value to setFocusModeLocked(lensPosition:completionHandler:) to lock focus (that is, disable autofocus) without changing the lens' current position.

See Also

Managing the Lens Position

var lensPosition: Float

Indicates the focus position of the lens.

var isLockingFocusWithCustomLensPositionSupported: Bool

A Boolean value indicating whether the device supports locking focus to a specific lens position.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software