Skip to content

Commit

Permalink
Minor fix for README (#3425)
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 Jan 3, 2024
1 parent a0ee257 commit 2b47321
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 2b47321

Please sign in to comment.