From 75fc013f924917fcfa7411c8a8caaa3e339965d5 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 22 Dec 2015 14:35:31 -0500 Subject: [PATCH] document spm --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 63d18d7..f032259 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,22 @@ Manually (iOS 7+) 1. Copy the Source folder into your Xcode project. (Make sure you add the files to your target(s)) 2. If you plan on using this from Objective-C, read [this](https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html) on exposing Swift code to Objective-C. +Swift Package Manager +--------------------- +1. Add the project as a dependency to your Package.swift: + +```swift +import PackageDescription + +let package = Package( + name: "YourSocketIOProject", + dependencies: [ + .Package(url: "https://github.com/socketio/socket.io-client-swift", majorVersion: 4) + ] +) +``` +2. `import SocketIOClientSwift` + Carthage ----------------- Add this line to your `Cartfile`: