Isuru-Nanayakkara / Reach

A simple class to check for internet connection availability in Swift.
MIT License
456 stars 119 forks source link

Added new method to check on which type the connection has #2

Closed arnoappenzeller closed 9 years ago

arnoappenzeller commented 9 years ago

Sometimes you need to distinguish between Wifi and Mobile Connection.

I added the method isConnectedToNetworkOfType() -> ReachabilityType Which returns an enum value of the type: enum ReachabilityType { case WWAN, WiFi, NotConnected }

Also enhanced the example for it

Isuru-Nanayakkara commented 9 years ago

Hi Arno,

Just saw the pull request. I didn't get any email notification or anything. Anyway, I merged it with the original source. Thank you :+1: