Remove flush and restore of web view queues. Issue #1882

This commit is contained in:
Maurice Parker 2020-03-11 17:02:16 -06:00
parent 38981d01bd
commit 76d5f4a073
1 changed files with 0 additions and 11 deletions

View File

@ -25,19 +25,8 @@ class WebViewProvider: NSObject {
viewController.view.insertSubview(queue, at: 0)
replenishQueueIfNeeded()
NotificationCenter.default.addObserver(self, selector: #selector(didEnterBackground), name: UIApplication.didEnterBackgroundNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
}
@objc func didEnterBackground() {
flushQueue()
}
@objc func willEnterForeground() {
replenishQueueIfNeeded()
}
func flushQueue() {
queue.subviews.forEach { $0.removeFromSuperview() }
}