Skip to content

Commit

Permalink
KeychainCoordinator: fix passcode view not shown on modal
Browse files Browse the repository at this point in the history
Show passcode view above the modal shown in the player.

Closes #1196
  • Loading branch information
Mikanbu committed Oct 20, 2021
1 parent 541e69a commit 69da002
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/KeychainCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ class KeychainCoordinator: NSObject {
// If playing a video, show the passcode view above the player.
if let playerViewController = rootViewController.presentedViewController {
presentingViewController = playerViewController
// Check if the player is showing any modals.
if let modal = playerViewController.presentedViewController {
presentingViewController = modal
}
}

let navigationController = UINavigationController(rootViewController: passcodeLockController)
Expand Down

0 comments on commit 69da002

Please sign in to comment.