Open onmyway133 opened 2 years ago
We need to explicitly specify optional in tag
tag
extension AVCaptureDevice: Identifiable { public var id: String { uniqueID } } @State var device: AVCaptureDevice? Picker("Camera", selection: $device) { ForEach(manager.devices) { d in Text(d.localizedName) .tag(AVCaptureDevice?.some(d)) } }
We need to explicitly specify optional in
tag