File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,31 @@ SwiftOSC is a Swift Open Sound Control (OSC) 1.1 client and server framework.
1010
1111## Installation
1212
13- ```
13+ ### [ CocoaPods] ( http://cocoapods.org )
14+
15+ ```` ruby
1416pod ' SwiftOSC' , ' ~> 2.0'
17+ ````
18+
19+ ### [ Swift Package Manager] ( https://swift.org/package-manager/ )
20+
21+ ``` swift
22+ dependencies: [
23+ .package (url : " https://github.com/soundflix/SwiftOSC.git" , from : " 2.0" )
24+ ]
1525```
1626
17- OR
27+ Alternatively, you can add the package [ directly via Xcode] ( https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app ) .
28+
29+ OR install locally:
1830
1931### Step 1
2032
2133Clone or download repository from Github.
2234
2335### Step 2
2436
25- Open SwiftOSC.xcworkspace and build SwiftOSC frameworks.
37+ Open SwiftOSC.xcworkspace and build SwiftOSC frameworks.
2638
2739### Step 3
2840
@@ -47,7 +59,7 @@ var server = OSCServer(port: 8080)
4759Setup server delegate to handle incoming OSC Data
4860``` swift
4961class OSCHandler : OSCServerDelegate {
50-
62+
5163 func didReceive (_ message : OSCMessage){
5264 if let integer = message.arguments[0 ] as? Int {
5365 print (" Received int \( integer ) " )
@@ -93,7 +105,7 @@ client.send(message)
93105```
94106## Known Issues
95107 - OSCClient loses connection following returning from being in the background. Call client.restart() in this situation.\
96-
108+
97109
98110## About
99111
You can’t perform that action at this time.
0 commit comments