Post

Replies

Boosts

Views

Created

NWPathMonitor
I am using NWPathMonitor and it works perfectly at device but Apple is complain at simulator. I did bellow code to always returns true at simulator environment   @objc var isOnline: Bool {     #if targetEnvironment(simulator)         true     #else         hasWifi || hasCellular     #endif     } Could someone help to identify what I did wrong? Thanks in advance.
2
0
578
Mar ’22
NWPathMonitor
I am using NWPathMonitor and it works perfectly at device but Apple is complain at simulator. I did bellow code to always returns true at simulator environment   @objc var isOnline: Bool {     #if targetEnvironment(simulator)         true     #else         hasWifi || hasCellular     #endif     } Could someone help to identify what I did wrong? Thanks in advance.
Replies
2
Boosts
0
Views
578
Activity
Mar ’22