genglei01 / IJReachability

A simple class to check for internet connection availability in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IJReachability

A simple class to check for internet connection availability in Swift. Works for both 3G and WiFi connections.

Install

CocoaPods (< v0.36)
  • Create a Podfile.
  • Add the line, pod 'IJReachability', :git => 'https://github.com/Isuru-Nanayakkara/IJReachability.git'.
  • Run pod install.
  • Add import IJReachability to the files where you want to use the library.
Manually
  • Add the IJReachability.swift file to your project.
  • Add the SystemConfiguration framework.

Credits

  • Chris Danielson is the author of the original code written in Objective-C.
  • Martin R from StackOverflow helped me immensely in converting C code to Swift.

About

A simple class to check for internet connection availability in Swift.

License:MIT License


Languages

Language:Swift 92.4%Language:Ruby 7.6%