Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cb4d48d603 | |||
| 6604aae989 |
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "SkeletonView"
|
||||
s.version = "1.30.1"
|
||||
s.version = "1.30.2"
|
||||
s.summary = "An elegant way to show users that something is happening and also prepare them to which contents he is waiting"
|
||||
s.description = <<-DESC
|
||||
Today almost all apps have async processes, as API requests, long runing processes, etc. And while the processes are working, usually developers place a loading view to show users that something is going on.
|
||||
|
||||
+2
-2
@@ -22,11 +22,11 @@ extension UIView {
|
||||
func startObservingAppLifecycleNotifications() {
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(appDidBecomeActive), name: .applicationDidBecomeActiveNotification, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(appDidEnterBackground), name: .applicationDidEnterForegroundNotification, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(willTerminateNotification), name: .applicationDidEnterForegroundNotification, object: nil)
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(willTerminateNotification), name: .applicationWillTerminateNotification, object: nil)
|
||||
}
|
||||
|
||||
func stopObservingAppLifecycleNotications() {
|
||||
NotificationCenter.default.removeObserver(self, name: .applicationDidEnterForegroundNotification, object: nil)
|
||||
NotificationCenter.default.removeObserver(self, name: .applicationDidBecomeActiveNotification, object: nil)
|
||||
NotificationCenter.default.removeObserver(self, name: .applicationDidEnterForegroundNotification, object: nil)
|
||||
NotificationCenter.default.removeObserver(self, name: .applicationWillTerminateNotification, object: nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user