|
@@ -27,9 +27,6 @@ import UIKit
|
|
|
extension NotificationCenter {
|
|
|
|
|
|
func postOnMainThread(name: String, object anObject: Any? = nil, userInfo aUserInfo: [AnyHashable: Any]? = nil, second: Double = 0) {
|
|
|
-// if UIApplication.shared.applicationState == .background {
|
|
|
-// return
|
|
|
-// }
|
|
|
DispatchQueue.main.asyncAfter(deadline: .now() + second) {
|
|
|
NotificationCenter.default.post(name: Notification.Name(rawValue: name), object: anObject, userInfo: aUserInfo)
|
|
|
}
|