- finalised theme 2 collection clicks

- worked on homelive tv observers
- addd fav remove fav for audio books will now locally update my list instead reloading
- addd fav remove fav for karaoke will now locally update my list instead reloading
- addd fav remove fav for games will now locally update my list instead reloading
This commit is contained in:
Bilal
2024-08-02 23:22:06 +05:30
parent 7950d1961f
commit 210094e65c
32 changed files with 1006 additions and 656 deletions

View File

@@ -12,10 +12,12 @@ class NetworkReachibility{
static let shared = NetworkReachibility()
private init(){}
let manager = NetworkReachabilityManager(host: "www.apple.com")
var isMonitoring = false
fileprivate var isInternetReachable = false
func startMonitoring(onCompletion : @escaping (Bool) -> Void) {
manager?.startListening(onQueue: DispatchQueue.main, onUpdatePerforming: { (status) in
self.isMonitoring = true
switch status {
case .notReachable:
print("network connection status - lost")
@@ -38,6 +40,7 @@ class NetworkReachibility{
}
func stopMonitoring(){
self.isMonitoring = false
manager?.stopListening()
}
}