Skip to content

Commit

Permalink
Syntax highlighting for README code snippets
Browse files Browse the repository at this point in the history
Add syntax highlighting for the sample codes snippets in README.md
  • Loading branch information
hy9be authored Mar 26, 2024
1 parent 4fcc8cb commit 86265df
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 @@ -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()
Expand All @@ -29,7 +29,7 @@ func exampleAPIKeyLogin() {
}
```

```
``` swift
// Create an authentication helper using credentials from Cognito
func exampleCognitoLogin() {
let authHelper = AuthHelper()
Expand All @@ -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"
Expand Down Expand Up @@ -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.
see LICENSE.txt and NOTICE.txt for more information.

0 comments on commit 86265df

Please sign in to comment.