diff --git a/README.md b/README.md index 0fd2112..218f208 100644 --- a/README.md +++ b/README.md @@ -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 NSBonjourServices _altserver._tcp @@ -49,7 +49,7 @@ add_compile_options($<$>:-fPIC>) ## Usage ### Swift -``` +```swift import AltKit ServerManager.shared.startDiscovering() @@ -75,7 +75,7 @@ ServerManager.shared.autoconnect { result in ``` ### Objective-C -``` +```objc @import AltKit; [[ALTServerManager sharedManager] startDiscovering];