Merge pull request #8 from banjun/readme-cocoapods

[README] add CocoaPods in Installation section
This commit is contained in:
Erik Little 2015-03-12 10:19:27 -04:00
commit 3ba793acf1

View File

@ -7,8 +7,42 @@ For Swift 1.2 use the 1.2 branch.
Installation
============
Manually (iOS 7+)
-----------------
1. Copy the SwiftIO folder into your Xcode project!
CocoaPods (iOS 8+)
------------------
Install cocoapods 0.36.0 or later:
```
$ gem install cocoapods
```
Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Socket.IO-Client-Swift', '~> 1.1'
```
Install pods:
```
$ pod install
```
Import in your swift file:
```swift
import Socket_IO_Client_Swift
```
API
===
Constructor