Skip to content

Commit a1b3c2e

Browse files
authored
issue #604 Blocked user interaction until loader is hidden (#651)
1 parent d54d4d5 commit a1b3c2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FlowCrypt/Extensions/UIViewControllerExtensions.swift

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ extension UIViewController {
124124
// hud is already shown
125125
return
126126
}
127+
self.view.isUserInteractionEnabled = isUserInteractionEnabled
127128

128129
let spinner = MBProgressHUD.showAdded(to: self.view, animated: true)
129130
spinner.label.text = message
@@ -136,6 +137,7 @@ extension UIViewController {
136137
self.view.subviews
137138
.compactMap { $0 as? MBProgressHUD }
138139
.forEach { $0.hide(animated: true) }
140+
self.view.isUserInteractionEnabled = true
139141
}
140142
}
141143

0 commit comments

Comments
 (0)