Skip to content

Commit 338e88a

Browse files
committed
Make sure the permissions controller is displayed if the camera permissions are not determined. #141
1 parent 11183c1 commit 338e88a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/Gallery/GalleryController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public class GalleryController: UIViewController, PermissionControllerDelegate {
7575
let useCamera = Permission.Camera.needsPermission && Permission.Camera.status == .authorized
7676

7777
let tabsToShow = Config.tabsToShow.compactMap { $0 != .cameraTab ? $0 : (useCamera ? $0 : nil) }
78+
if useCamera, Permission.Camera.status == .notDetermined {
79+
return nil
80+
}
7881

7982
let controllers: [UIViewController] = tabsToShow.compactMap { tab in
8083
if tab == .imageTab {

0 commit comments

Comments
 (0)