Check Wifi On or Off Swift 4.2 Xcode 10

If you search on the internet, many website don't work for newest iOS. Finally i found the simple way to implement it. I found it on stackoverflow but still need a little bit change. You just need to change awd10 to en0.

Full code :

Hope it helps you.

Here's the source i got.

Popular posts from this blog

How to get thumbnail from video URL in Swift 5

Missing system image Android Studio solution

How to customize your date according to Timezone in Swift 5