Compare commits

...

1 Commits

Author SHA1 Message Date
9e05ea15c1 Ensure custom exposure mode is supported 2024-10-09 17:59:22 -06:00

View File

@ -200,6 +200,11 @@ extension CameraSession {
return return
} }
guard captureDevice.isExposureModeSupported(.custom) else {
ReactLogger.log(level: .info, message: "Custom exposure mode not supported")
return
}
do { do {
// Lock the device for configuration // Lock the device for configuration
try captureDevice.lockForConfiguration() try captureDevice.lockForConfiguration()