Controlling F-Stop, exposure time, and zoom level, in Swift

The need is to take pictures with Swift code settable parameters such as F-Stop, exposure time, and zoom level, in an iPhone 14 Pro.

What AVCam methods control these? If there are none, are there other ways to do this?

The option to have the torch constantly light on, or off, is also needed. Flash will not be used.

look at AVCaptureDevice in the developer documentation

I found out that iPhone camera hardware has a fixed aperture. No hardware to adjust its aperture exists.

As far as exposure time goes I found out that information here: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624646-setexposuremodecustom And the camera functions have to be locked to do these by using the methods:

.lockForConfiguration()
.unlockForConfiguration()
Controlling F-Stop, exposure time, and zoom level, in Swift
 
 
Q