minor change
This commit is contained in:
parent
950b8c124c
commit
5bbc90f877
@ -32,8 +32,6 @@ struct MainView: View {
|
|||||||
// explicitly prompt them for approval.
|
// explicitly prompt them for approval.
|
||||||
if status == .notDetermined {
|
if status == .notDetermined {
|
||||||
isAuthorized = await AVCaptureDevice.requestAccess(for: .video)
|
isAuthorized = await AVCaptureDevice.requestAccess(for: .video)
|
||||||
} else if status == .denied {
|
|
||||||
// TODO: show alert when denied
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return isAuthorized
|
return isAuthorized
|
||||||
|
Loading…
x
Reference in New Issue
Block a user