From ea20dc809e5ea7719e3b259629ad5e21711b2f8c Mon Sep 17 00:00:00 2001 From: banjun Date: Thu, 12 Mar 2015 22:54:43 +0900 Subject: [PATCH] [README] add CocoaPods in Installation section --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 72e8f5b..5d0948f 100644 --- a/README.md +++ b/README.md @@ -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