# 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="/files/T1tOno8QjqqcjN2gEIC3" alt="" data-size="line"> button in the top header bar allows you to directly download the echo3D SDK for Swift.

<img src="/files/Ri3FQOFUFJh5TOKTEGbs" alt="" width="490">

### 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.

![](/files/-MBaZGJYrWlKLjq_C0y0)

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

![](/files/-MBaZGJZlr-lCrDoEOc4)

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

<figure><img src="/files/cSiKyK7SEDfXayXcSL5y" 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="/files/6Ry1cVoWtysDoUR3sV1A" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/kEggspoeEfJYUSQovXdO" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/HeuuRmDLvVDDWtBchIv7" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.echo3d.com/swift/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
