Use shared display link

This commit is contained in:
Ali 2023-01-10 13:37:00 +04:00
parent f7a2358b08
commit e204a05456

View File

@ -95,7 +95,7 @@ public final class SharedDisplayLinkDriver {
private var isInForeground: Bool = false private var isInForeground: Bool = false
private init() { private init() {
self.useNative = true self.useNative = false
let _ = NotificationCenter.default.addObserver(forName: UIApplication.willEnterForegroundNotification, object: nil, queue: nil, using: { [weak self] _ in let _ = NotificationCenter.default.addObserver(forName: UIApplication.willEnterForegroundNotification, object: nil, queue: nil, using: { [weak self] _ in
guard let self else { guard let self else {