Skip to content

Commit

Permalink
KeychainCoordinator: cosmetic: add clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikanbu committed Oct 20, 2021
1 parent 6d0243f commit 541e69a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/KeychainCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ class KeychainCoordinator: NSObject {

//if we have no video displayed we should use the current rootViewController
var presentingViewController = rootViewController
if let presentedViewController = rootViewController.presentedViewController {
//but if a video is playing we have the MovieViewController presented and want to show it above
presentingViewController = presentedViewController
// If playing a video, show the passcode view above the player.
if let playerViewController = rootViewController.presentedViewController {
presentingViewController = playerViewController
}

let navigationController = UINavigationController(rootViewController: passcodeLockController)
Expand Down

0 comments on commit 541e69a

Please sign in to comment.