From 86265df5b4b38c1db986e9066da8b6bc2e989318 Mon Sep 17 00:00:00 2001 From: hw Date: Tue, 26 Mar 2024 11:42:02 -0400 Subject: [PATCH] Syntax highlighting for README code snippets Add syntax highlighting for the sample codes snippets in README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d983335..dc30464 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,14 @@ These utilities help you authenticate when when making [Amazon Location Service] After installing the library, import the AuthHelper class in an activity: -``` +``` swift import AmazonLocationiOSAuthSDK import AWSLocationXCF ``` You can create an AuthHelper and use it with the AWS SDK: -``` +``` swift // Create an authentication helper instance using an Amazon Location API Key func exampleAPIKeyLogin() { let authHelper = AuthHelper() @@ -29,7 +29,7 @@ func exampleAPIKeyLogin() { } ``` -``` +``` swift // Create an authentication helper using credentials from Cognito func exampleCognitoLogin() { let authHelper = AuthHelper() @@ -40,7 +40,7 @@ func exampleCognitoLogin() { You can use the location client to make calls to Amazon Location Service. Here is an example that searches for places near a specified latitude and longitude: -``` +``` swift let searchPlaceIndexForPositionRequest = AWSLocationSearchPlaceIndexForPositionRequest()! searchPlaceIndexForPositionRequest.indexName = "My-Place-Index-Name" @@ -70,4 +70,4 @@ We welcome community contributions and pull requests. See [CONTRIBUTING.md](http The Amazon Location Service Mobile Authentication SDK for iOS is distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), -see LICENSE.txt and NOTICE.txt for more information. \ No newline at end of file +see LICENSE.txt and NOTICE.txt for more information.