Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //old
- NotificationCenter.default.addObserver(self, selector: #selector(BlurView.applicationDidEnterBackground(_:)), name: NSNotification.Name.UIApplication.didEnterBackgroundNotification, object: nil)
- NotificationCenter.default.addObserver(self, selector: #selector(BlurView.applicationWillEnterForeground(_:)), name: NSNotification.Name.UIApplication.willEnterForegroundNotification, object: nil)
- //new
- NotificationCenter.default.addObserver(self, selector: #selector(BlurView.applicationDidEnterBackground(_:)), name: UIApplication.didEnterBackgroundNotification, object: nil)
- NotificationCenter.default.addObserver(self, selector: #selector(BlurView.applicationWillEnterForeground(_:)), name: UIApplication.willEnterForegroundNotification, object: nil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement