# Installation

You can easily use echo3D as a backend for your Swift for iOS project by following these steps:

### Downloading the Swift SDK <a href="#download-unity-sdk" id="download-unity-sdk"></a>

Clicking the <img src="https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M41BcmqhdFQ3r89wcIR%2Fuploads%2FYdBLvRywUB39lfQjyL7y%2Fimage.png?alt=media&#x26;token=85e3b999-25e7-45b6-98ec-369e8645c18c" alt="" data-size="line"> button in the top header bar allows you to directly download the echo3D SDK for Swift.

![](https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M41BcmqhdFQ3r89wcIR%2Fuploads%2FZjhC9AEIiRLHcL5QjsgF%2Fimage.png?alt=media\&token=f820e495-2922-43d7-a7dc-cab1c78874ae)

### Opening an iOS Project <a href="#open-a-unity-project" id="open-a-unity-project"></a>

Open up Xcode and select create new Xcode project.

![](https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M41BcmqhdFQ3r89wcIR%2F-MBaNwoHnFFONlvZ-gB8%2F-MBaZGJYrWlKLjq_C0y0%2FXcode.png?alt=media\&token=81ef4338-7373-4e9d-9112-9011e1cdd95b)

For **AR**: Select `iOS -> Augmented Reality App` and click `next`.

![](https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M41BcmqhdFQ3r89wcIR%2F-MBaNwoHnFFONlvZ-gB8%2F-MBaZGJZlr-lCrDoEOc4%2FAR%20iOS%20App.png?alt=media\&token=5e128f94-b3c1-4a00-a2f4-bd62b826bfe2)

For **Non-AR**: Select `iOS -> App` and click `next`.

<figure><img src="https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M41BcmqhdFQ3r89wcIR%2Fuploads%2FLCBfhxZTLeGnvf8HWPWy%2FScreenshot%202023-08-07%20at%204.04.40%20PM.png?alt=media&#x26;token=cfad7cb0-e381-4814-99e6-876e76b29a83" alt=""><figcaption></figcaption></figure>

Name your project, select an organization, and select `SceneKit` under `Content Technology`.

### Integrating the Swift SDK <a href="#integrate-unity-sdk" id="integrate-unity-sdk"></a>

Click on your project folder **within** your project and `add Files to "Your-Project-Name".`

<figure><img src="https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M41BcmqhdFQ3r89wcIR%2Fuploads%2Fo5LupokvDYXAXsOzvlg7%2FScreenshot%202023-08-10%20at%205.00.58%20PM.png?alt=media&#x26;token=42636293-65cf-41cb-b817-c531705a4c92" alt=""><figcaption></figcaption></figure>

`Locate` the echo3DSwiftSDK file on your computer and click `Add.`

<figure><img src="https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M41BcmqhdFQ3r89wcIR%2Fuploads%2FvsWyOLWKsS6wvuZymM39%2FScreenshot%202023-08-10%20at%205.03.56%20PM.png?alt=media&#x26;token=50b79162-1ebb-46bc-91d0-2944c285ad13" alt=""><figcaption></figcaption></figure>

`Move` the Echo3DSwiftSDK **.swift** files out of the folder and `insert into` your project.

<figure><img src="https://3757500311-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M41BcmqhdFQ3r89wcIR%2Fuploads%2FlqVH03wlgif77bWntM94%2FScreenshot%202023-08-10%20at%205.08.59%20PM.png?alt=media&#x26;token=2d76c939-f729-424a-9dd0-005c5abd34d7" alt=""><figcaption></figcaption></figure>

In the `Echo3D.swift` file, change the `api_key` variable to your API key.

**That's it! 🎉**

{% hint style="info" %}
If you already have an app built using a single view application and don’t want to reconfigure it as an AR Project, you can create an ASCN view in the interface builder and connect it to the view controller provided in the Swift SDK.
{% endhint %}
