Skip to content

Commit

Permalink
Minor fix for README
Browse files Browse the repository at this point in the history
Fixes a typo in the Cognito framework name and updates `.add(_:)` to `.add(plugin:)`
  • Loading branch information
nighthawk authored Dec 18, 2023
1 parent e01f1d3 commit 9d3bd7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ Amplify requires Xcode 14.1 or higher to build for iOS and macOS. Building for w

```swift
import Amplify
import AWSCongitoAuthPlugin
import AWSCognitoAuthPlugin
import AWSAPIPlugin
import AWSDataStorePlugin

// ...

func initializeAmplify() {
do {
try Amplify.add(AWSCognitoAuthPlugin())
try Amplify.add(AWSAPIPlugin())
try Amplify.add(AWSDataStorePlugin())
try Amplify.add(plugin: AWSCognitoAuthPlugin())
try Amplify.add(plugin: AWSAPIPlugin())
try Amplify.add(plugin: AWSDataStorePlugin())
// and so on ...
try Amplify.configure()
} catch {
Expand Down

0 comments on commit 9d3bd7a

Please sign in to comment.