Reachability.swift is a replacement for Apple's Reachability sample, re-written in Swift with closures. It is compatible with iOS (8.0 - 12.0), OSX (10.9 - 10.14) and tvOS (9.0 - 12.0). Just drop the Reachability.swift file into your project. That's it! The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. You can integrate using Apple's Swift package manager from xcode. All closures are run on the main queue.