Skip to content

Commit

Permalink
Added colors in README.md file (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush9029 authored Nov 9, 2021
1 parent c182b80 commit f799f60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ AltKit allows apps to communicate with AltServers on the same WiFi network and e

To use AltKit in your app, add the following to your `Package.swift` file's dependencies:

```
```swift
.package(url: "https://github.com/rileytestut/AltKit.git", .upToNextMajor(from: "0.0.1")),
```

Next, add the AltKit package as a dependency for your target:

```
```swift
.product(name: "AltKit", package: "AltKit"),
```

Finally, right-click on your app's `Info.plist`, select "Open As > Source Code", then add the following entries:

```
```xml
<key>NSBonjourServices</key>
<array>
<string>_altserver._tcp</string>
Expand Down Expand Up @@ -49,7 +49,7 @@ add_compile_options($<$<NOT:$<COMPILE_LANGUAGE:Swift>>:-fPIC>)
## Usage

### Swift
```
```swift
import AltKit

ServerManager.shared.startDiscovering()
Expand All @@ -75,7 +75,7 @@ ServerManager.shared.autoconnect { result in
```

### Objective-C
```
```objc
@import AltKit;

[[ALTServerManager sharedManager] startDiscovering];
Expand Down

0 comments on commit f799f60

Please sign in to comment.