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.