Skip to main content
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →

React Architecture Concept • Core Motion Model

SwiftUI Motion Runtime: Playing ExodeUI Files in SwiftUI

Updated November 2026

The ExodeUI SwiftUI package plays an .exode file inside an ExodeUICanvas view. An ExodeUIController sets the file’s inputs from Swift (setInputText, setInputNumber, setInputBool), and onTrigger tells your app when something happens in the file.

Interactive Concept Explorer
Live preview
Input Parameter: 50%Tension: 125
Under the Hood: Engine Architecture

Apple SwiftUI utilizes response and dampingFraction rather than raw stiffness. The common conversion from physical values is: response = 2π / √(stiffness/mass) and dampingFraction = damping / (2 · √(stiffness · mass)).

Runnable ExodeUI React Implementation

Production Ready

Mount the ExodeUICanvas component and bind parameters declaratively without imperative lifecycle hooks:

jsx
import SwiftUI
import ExodeRuntime

struct LivingCardView: View {
    @State private var isExpanded = false
    
    var body: some View {
        VStack {
            Text("Native SwiftUI Component")
                .font(.headline)
            if isExpanded {
                Text("Expanded with Apple native spring physics.")
                    .font(.subheadline)
                    .foregroundColor(.secondary)
            }
        }
        .padding()
        .background(Color(.systemBackground))
        .cornerRadius(16)
        .shadow(radius: isExpanded ? 16 : 4)
        .scaleEffect(isExpanded ? 1.04 : 1.0)
        .animation(.spring(response: 0.38, dampingFraction: 0.72), value: isExpanded)
        .onTapGesture {
            isExpanded.toggle()
        }
    }
}

Frequently Asked Questions about swiftui motion runtime

Does ExodeUI generate SwiftUI source code?

No. ExodeUI does not generate SwiftUI source code. Your app includes the runtime package, which plays the file.

How do SwiftUI springs differ from other tools?

SwiftUI usually describes springs with response and damping fraction rather than raw stiffness and damping.

When should I just use withAnimation?

For most transitions in a SwiftUI app. It adds no dependency, and it is the natural choice for simple motion.

How does my Swift code control a file?

It sets inputs and listens for events through the runtime package. Check the current docs for the exact API.

Explore Related Concepts & Architecture Hubs

ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →