Skip to content

Commit 7e0180c

Browse files
committed
Merge pull request ashleymills#24 from plashchynski/patch-1
Add CocoaPods instructions to Readme
2 parents b2de223 + 9a79dcb commit 7e0180c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,25 @@ Inspired by https://github.com/tonymillion/Reachability
1010

1111
- If an application has the privacy option “Use cellular data” turned off, the Reachability class still reports isReachable() to be true. There is currently no (non-private) API to detect this. If you need this feature, please raise file a [bug report](https://bugreport.apple.com) with Apple to get this fixed. See devforums thread for details: https://devforums.apple.com/message/1059332#1059332
1212

13-
## Use
13+
## Installation
14+
### CocoaPods
15+
[CocoaPods][] is a dependency manager for Cocoa projects. To install Reachability.swift with CocoaPods:
1416

17+
1. Make sure CocoaPods is [installed][CocoaPods Installation].
18+
19+
2. Update your Podfile to include the following:
20+
21+
``` ruby
22+
use_frameworks!
23+
pod 'ReachabilitySwift', git: 'https://github.com/ashleymills/Reachability.swift'
24+
```
25+
26+
3. Run `pod install`.
27+
28+
[CocoaPods]: https://cocoapods.org
29+
[CocoaPods Installation]: https://guides.cocoapods.org/using/getting-started.html#getting-started
30+
31+
### Manual
1532
Just drop the **Reachability.swift** file into your project. That's it!
1633
1734
## Example - closures

0 commit comments

Comments
 (0)