We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11183c1 commit 338e88aCopy full SHA for 338e88a
1 file changed
Sources/Gallery/GalleryController.swift
@@ -75,6 +75,9 @@ public class GalleryController: UIViewController, PermissionControllerDelegate {
75
let useCamera = Permission.Camera.needsPermission && Permission.Camera.status == .authorized
76
77
let tabsToShow = Config.tabsToShow.compactMap { $0 != .cameraTab ? $0 : (useCamera ? $0 : nil) }
78
+ if useCamera, Permission.Camera.status == .notDetermined {
79
+ return nil
80
+ }
81
82
let controllers: [UIViewController] = tabsToShow.compactMap { tab in
83
if tab == .imageTab {
0 commit comments