Skip to content

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

@willby5890

Description

@willby5890

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)
    
  }
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions