From f799f60ef6fa8b9676b4102b7dfa169fb40b6c92 Mon Sep 17 00:00:00 2001 From: Aayush <43297314+Aayush9029@users.noreply.github.com> Date: Mon, 8 Nov 2021 19:06:04 -0500 Subject: [PATCH] Added colors in README.md file (#6) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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];