# How to Use the Code API for SwiftUI (https://academy.spline.design/tutorials/how-to-use-the-code-api-for-swiftui)

> A video tutorial from the Spline Academy.

- Product: Spline 3D
- Level: advanced
- Duration: 5 min 24 s
- Published: 2025-08-08
- Video: https://www.youtube.com/watch?v=_1T4BkslzsU
- Part of: [Export & Integration in Spline](https://academy.spline.design/collections/export-integration-in-spline.md)

## About this tutorial

With the new 3D Code API for SwiftUI, you can integrate Spline scenes into your iOS apps with just a few lines of code.

Today, we’re going to walk you through how to trigger actions, modify object properties, and create dynamic, responsive 3D environments directly from your existing code and user interface.

We’ve also prepared a Spline scene and an Xcode demo in the Spline docs, so you can explore more details directly.

## Related documentation

- [Native 3D Embeds for iOS](https://docs.spline.design/exporting-your-scene/apple-platform/native-3d-embeds-for-i-os)
- [Code API for SwiftUI](https://docs.spline.design/exporting-your-scene/apple-platform/code-api-for-swift-ui)
