119 |
120 |

121 |
Table of Contents
122 |
123 |
133 |
Overview
134 |
135 |
Reach is a lightweight reachability framework.
136 | We designed Reach to be simple to use and also very flexible. Written on Swift 3.1 and compatible with:
137 |
138 |
139 | - iOS 8.0
140 | - macOS 10.10
141 | - tvOS 9.0
142 | - watchOS 2.0
143 |
144 |
Features
145 |
146 |
147 | - Super friendly API
148 | - Singleton free
149 | - No external dependencies
150 | - Minimal implementation
151 | - Support for
iOS/macOS/tvOS/watchOS/Linux
152 | - Support for CocoaPods/Carthage/Swift Package Manager
153 |
154 |
Getting Started
155 |
156 |
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.
157 |
let reach = Reach()
158 |
159 | reach.start()
160 |
161 | print(reach.status)
162 |
163 |
164 |
You can check the Reach.playground
to experimental with more examples. If need to see deeply information you can check our Documentation
165 |
Installation
166 |
CocoaPods
167 |
168 |
Reach is available through CocoaPods. To install
169 | it, simply add the following line to your Podfile:
170 |
platform :ios, '10.0'
171 | use_frameworks!
172 | swift_version = '3.0'
173 |
174 | target 'MyApp' do
175 | pod 'Reach'
176 | end
177 |
178 |
Carthage
179 |
180 |
You can also install it via Carthage. To do so, add the following to your Cartfile:
181 |
github 'therapychat/Reach'
182 |
183 |
Swift Package Manager
184 |
185 |
You can use Swift Package Manager and specify dependency in Package.swift
by adding this:
186 |
.Package(url: "https://github.com/therapychat/Reach.git", majorVersion: 0)
187 |
188 |
Author
189 |
190 |
Sergio Fernández, fdz.sergio@gmail.com
191 |
Contribution
192 |
193 |
For the latest version, please check develop branch. Changes from this branch will be merged into the master branch at some point.
194 |
195 |
196 | - If you want to contribute, submit a pull request against a development
develop
branch.
197 | - If you found a bug, open an issue.
198 | - If you have a feature request, open an issue.
199 |
200 |
License
201 |
202 |
Reach is available under the Apache License 2.0
. See the LICENSE file for more info.
203 |
Changelog
204 |
205 |
See CHANGELOG file.
206 |
207 |
208 |