To initialize the Amplify Predictions and Auth categories, use the `Amplify.add(plugin:)` method to add **AWSCognitoAuthPlugin** and **AWSPredictionsPlugin**. Next finish configuring Amplify by calling `Amplify.configure()`.

Open the main file of your application - `AppDelegate.swift` or `<YOUR_APP_NAME>App.swift` - and **add the following import statements** to the top of the file.
```swift
import Amplify
import AWSCognitoAuthPlugin
import AWSPredictionsPlugin
```

**Configure Amplify at app launch**

<BlockSwitcher>

<Block name="SwiftUI">

```swift
@main
struct MyAmplifyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }

    init() { 
        do {
            try Amplify.add(plugin: AWSCognitoAuthPlugin())
            try Amplify.add(plugin: AWSPredictionsPlugin())
            try Amplify.configure()
            print("Amplify configured with Auth and Predictions plugins")
        } catch {
            print("Failed to initialize Amplify with \(error)")
        }
    }
  }
}
```

</Block>

<Block name="UIKit">

Add to your AppDelegate's `application:didFinishLaunchingWithOptions` method

```swift
func application(
  _ application: UIApplication,
  didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {

  do {
    try Amplify.add(plugin: AWSCognitoAuthPlugin())
    try Amplify.add(plugin: AWSPredictionsPlugin())
    try Amplify.configure()
    print("Amplify configured with Auth and Predictions plugins")
  } catch {
    print("Failed to initialize Amplify with \(error)")
  }

  return true
}
```

</Block>

</BlockSwitcher>

Upon building and running this application you should see the following in your console window:

```bash
Amplify configured with Auth and Predictions plugins
```
