Update comment decryption UI

This commit is contained in:
Ali
2020-03-25 17:59:03 +04:00
parent 44b57ffcce
commit 5d55b67c3a
171 changed files with 5267 additions and 1448 deletions

View File

@@ -23,6 +23,8 @@ public enum WindowUserInterfaceStyle {
self = .light
case .dark:
self = .dark
@unknown default:
self = .dark
}
}
}
@@ -188,33 +190,6 @@ private final class WindowRootViewController: UIViewController, UIViewController
private var previewingContext: AnyObject?
private func updatePreviewingRegistration() {
var shouldRegister = false
var isVoiceOverRunning = false
if #available(iOSApplicationExtension 10.0, iOS 10.0, *) {
isVoiceOverRunning = UIAccessibility.isVoiceOverRunning
}
if !isVoiceOverRunning {
shouldRegister = true
}
shouldRegister = false
if shouldRegister != self.registeredForPreviewing {
self.registeredForPreviewing = shouldRegister
if shouldRegister {
if #available(iOSApplicationExtension 9.0, iOS 9.0, *) {
self.previewingContext = self.registerForPreviewing(with: self, sourceView: self.view)
}
} else if let previewingContext = self.previewingContext {
self.previewingContext = nil
if let previewingContext = previewingContext as? UIViewControllerPreviewing {
if #available(iOSApplicationExtension 9.0, iOS 9.0, *) {
self.unregisterForPreviewing(withContext: previewingContext)
}
}
}
}
}
private weak var previousPreviewingHostView: (UIView & PreviewingHostView)?