To initialize the Amplify Geo, use the `Amplify.addPlugin()` method to add the AWSLocationGeoPlugin. Next, finish configuring Amplify by calling `Amplify.configure()`.

Open the main file of the application - `AppDelegate.swift` or `<YOUR_APP_NAME>App.swift` depending on the app's life cycle - and **add the following** import statements at the top of the file:

```swift
import Amplify
import AWSLocationGeoPlugin
```

In the same file, **create a function** to configure Amplify:
```swift
func configureAmplify() {
    do {
        try Amplify.add(plugin: AWSCognitoAuthPlugin())
        try Amplify.add(plugin: AWSLocationGeoPlugin())
        try Amplify.configure()
        print("Initialized Amplify");
    } catch {
        print("Could not initialize Amplify: \(error)")
    }
}
```

Now **call the `configureAmplify()` function** in the starting point of your application.
<BlockSwitcher>
<Block name="SwiftUI">

```swift
@main
struct <YOUR_APP_NAME>App: App {
    // add a default initializer and configure Amplify
    public init() {
        configureAmplify()
    }
}
```

</Block>
<Block name="UIKit">

```swift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(_: UIApplication,
                     didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        configureAmplify()
        return true
    }
    // ...
}
```

</Block>
</BlockSwitcher>

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

```console
Initialized Amplify
```
