Latest 1.1.0
Homepage https://github.com/therapychat/Reach
License Apache License, Version 2.0
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0
Authors

A modern Reachability network library.

Table of Contents

Overview

Reach is a lightweight reachability framework.
We designed Reach to be simple to use and also very flexible. Written on Swift 3.1 and compatible with:

  • iOS 8.0
  • macOS 10.10
  • tvOS 9.0
  • watchOS 2.0

Features

  • Super friendly API
  • Singleton free
  • No external dependencies
  • Minimal implementation
  • Support for iOS/macOS/tvOS/watchOS/Linux
  • Support for CocoaPods/Carthage/Swift Package Manager

Getting Started

Reach contains a status property to check the reachability from network. If you want to receive notifications from network changes, you can subscribe to ReachDelegate protocol.

let reach = Reach()

reach.start()

print(reach.status)

You can check the Reach.playground to experimental with more examples. If need to see deeply information you can check our Documentation

Installation

CocoaPods

Reach is available through CocoaPods. To install
it, simply add the following line to your Podfile:

platform :ios, '10.0'
use_frameworks!
swift_version = '3.0'

target 'MyApp' do
  pod 'Reach'
end

Carthage

You can also install it via Carthage. To do so, add the following to your Cartfile:

github 'therapychat/Reach'

Swift Package Manager

You can use Swift Package Manager and specify dependency in Package.swift by adding this:

.Package(url: "https://github.com/therapychat/Reach.git", majorVersion: 0)

Author

Sergio Fern├índez, [email protected]

Contribution

For the latest version, please check develop branch. Changes from this branch will be merged into the master branch at some point.

License

Reach is available under the Apache License 2.0. See the LICENSE file for more info.

Changelog

See CHANGELOG file.

Latest podspec

{
    "name": "Reach",
    "version": "1.1.0",
    "summary": "Reachability network library.",
    "homepage": "https://github.com/therapychat/Reach",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Sergio Fernandez": "[email protected]"
    },
    "social_media_url": "https://twitter.com/fdzsergio",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.0"
    },
    "source_files": "Source/*.swift",
    "source": {
        "git": "https://github.com/therapychat/Reach.git",
        "tag": "1.1.0"
    },
    "ios": {
        "frameworks": "SystemConfiguration"
    },
    "osx": {
        "frameworks": "SystemConfiguration"
    },
    "tvos": {
        "frameworks": "SystemConfiguration"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This