Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'flashMode' and 'isflashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead. #474

Open
willby5890 opened this issue Dec 5, 2020 · 1 comment

Comments

@willby5890
Copy link

The flashMode was deprecated and a warning shows in CameraMan.swift. The new method is not easily applied.

func flash(_ mode: AVCaptureDevice.FlashMode) {
guard let device = currentInput?.device, device.isFlashModeSupported(mode) else { return }
// guard let device = getSettings(camera: camera, flashMode: flashMode) else {return}

queue.async { [self] in
  self.lock {
    device.flashMode = mode
//    let settings = getSettings(camera: camera!, flashMode: flashMode)
    
  }
}

}

@willby5890 willby5890 changed the title 'flashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead. 'flashMode' and 'isflashMode' was deprecated in iOS 10.0: Use AVCapturePhotoSettings.flashMode instead. Dec 5, 2020
@3lvis
Copy link
Collaborator

3lvis commented Jan 30, 2021

Any chance to get some help here? I don't have the bandwidth to fix issues but I can take some time to review them and merge them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants