Fix accessibility in SetPinCoordinatorBridgePresenter

This commit is contained in:
Alfonso Grillo
2023-04-26 15:36:29 +02:00
parent 0cc657df6c
commit bbda17fd70
@@ -91,6 +91,10 @@ final class SetPinCoordinatorBridgePresenter: NSObject {
}
func presentWithMainAppWindow(_ window: UIWindow) {
// Prevents the VoiceOver reading accessible content when the PIN screen is on top
// Calling `makeKeyAndVisible` in `dismissWithMainAppWindow(_:)` restores the visibility state.
window.isHidden = true
let pinCoordinatorWindow = UIWindow(frame: window.bounds)
let setPinCoordinator = SetPinCoordinator(session: self.session, viewMode: self.viewMode, pinCodePreferences: .shared)