> For the complete documentation index, see [llms.txt](https://guide.swiftxr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.swiftxr.io/integrations/swift.md).

# Swift

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

### Introduction <a href="#introduction" id="introduction"></a>

SwiftXR is a powerful platform for creating and sharing interactive 3D, augmented reality (AR), and virtual reality (VR) experiences on the web. With the SwiftXR (3D/AR/VR) Integration for Swift UI, you can easily integrate SwiftXR Projects into your Swift UI websites/webapps, enabling you to create immersive and interactive web experiences.

### Creating a Project in SwiftXR <a href="#creating-a-project-in-swiftxr" id="creating-a-project-in-swiftxr"></a>

* Navigate to the SwiftXR Hub: Begin by visiting the [SwiftXR Hub](https://swiftxr.io/hub).
* Initiate Project Creation: Once on Hub, click the "Create Project" button and enter your desired project name.
* Design and Develop: Utilize the intuitive editor to effortlessly add and customize SwiftXR components, bringing your 3D vision to life.

<figure><img src="https://docs.swiftxr.io/img/plugins/framer/step-1.png" alt=""><figcaption></figcaption></figure>

### Add a Component/Upload a 3D Model to the Canvas <a href="#add-a-componentupload-a-3d-model-to-the-canvas" id="add-a-componentupload-a-3d-model-to-the-canvas"></a>

* From the component tab, click or drag and drop a 3D viewer component to add it to the white canvas.
* Select the "Properties" tab to upload a 3D model, import from a 3D store or Request a 3D model from <support@swiftxr.io>.

<figure><img src="https://docs.swiftxr.io/img/integrations/html/step-3.png" alt=""><figcaption></figcaption></figure>

### Publishing Your SwiftXR Project <a href="#publishing-your-swiftxr-project" id="publishing-your-swiftxr-project"></a>

Utilize the editor to create your 3D vision using the SwiftXR components. Once satisfied with your creation, press the "Publish" or "Update" button to make your project live.

<figure><img src="https://docs.swiftxr.io/img/integrations/html/step-4.png" alt=""><figcaption></figcaption></figure>

### Copy Embed Code <a href="#copy-embed-code" id="copy-embed-code"></a>

After publishing, click the dropdown button beside the "Update" button and select "Share." Within the Share modal, click the "Copy Embed" button to copy the embed code for your project.

&#x20;

<figure><img src="https://docs.swiftxr.io/img/integrations/swift-ui/step-6.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://docs.swiftxr.io/img/integrations/html/step-5.png" alt=""><figcaption></figcaption></figure>

### Integrating SwiftXR into Swift UI Websites <a href="#integrating-swiftxr-into-swift-ui-websites" id="integrating-swiftxr-into-swift-ui-websites"></a>

* Simply paste the copied Swift UI embed code into the desired section of your website's Swift UI source code to seamlessly integrate and showcase the 3D/AR/VR view on your site

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

### Viewing your Scene in the Web, AR or VR <a href="#viewing-your-scene-in-the-web-ar-or-vr" id="viewing-your-scene-in-the-web-ar-or-vr"></a>

Save and deploy the Swift UI website and view the link on any device to explore it immersively.

### Conclusion <a href="#conclusion" id="conclusion"></a>

By integrating SwiftXR with Swift UI, you can seamlessly blend 3D elements into your web prototypes, creating more engaging and interactive experiences for your users. Explore the possibilities of using SwiftXR to enhance your Swift UI prototypes and bring your ideas to life in an immersive and interactive way.
