How can I check network status in Swift? In Objective-C Reachability.h .m files were available. What now? How can I check whether I am online or offline?
If you're looking for a Swift implementation of Apple's Reachability class, you could take a look at this:
http://github.com/ashleymills/Reachability.swift
It's a drop in class, using notifications and closures.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With