Skip to content

Commit 06b5741

Browse files
committedJan 1, 2022
Update README.md
add Swift Package installation instructions
1 parent b8665a1 commit 06b5741

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed
 

‎README.md

+17-5
Original file line numberDiff line numberDiff 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
1416
pod '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

2133
Clone 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)
4759
Setup server delegate to handle incoming OSC Data
4860
```swift
4961
class 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

0 commit comments

Comments
 (0)
Failed to load comments.