◉RORK LABJP
●GPT-6.1 SOL — Added to Rork's model menu (09-29) with Low, Medium and High effort; included on Pro and Max●SONNET 5.5 — Claude Sonnet 5.5 is selectable: strong at UI design and faster than Sonnet 5 (09-28)●SONNET 4.5 — Retires on the Claude API on 11/30, 27 days left. If your app calls it, check the migration target●SDK 58 — Moves to React Native 0.88. R8 is now on by default in Android release builds, and iOS prebuild generates a SceneDelegate●OBSERVE — EAS Observe now records native crashes too (SDK 57.0.21 or later, 10/07)●NEW — My App Open Ad Only Showed When the App…●GPT-6.1 SOL — Added to Rork's model menu (09-29) with Low, Medium and High effort; included on Pro and Max●SONNET 5.5 — Claude Sonnet 5.5 is selectable: strong at UI design and faster than Sonnet 5 (09-28)●SONNET 4.5 — Retires on the Claude API on 11/30, 27 days left. If your app calls it, check the migration target●SDK 58 — Moves to React Native 0.88. R8 is now on by default in Android release builds, and iOS prebuild generates a SceneDelegate●OBSERVE — EAS Observe now records native crashes too (SDK 57.0.21 or later, 10/07)●NEW — My App Open Ad Only Showed When the App…
Articles/Dev Tools
⬡ Dev Tools/2026-06-15Advanced

Showing Live Progress in the Dynamic Island from a Rork Max Swift App

How to add an ActivityKit Live Activity to a Swift app generated by Rork Max so progress shows in the Dynamic Island, plus the update-related pitfalls I hit in production.

Rork Max235Dynamic Island3ActivityKit4Live Activities6SwiftUI66

✦ Premium Article

I had a small timer app on the App Store, and the reviews kept circling the same complaint: "When I close the app I lose track of how much time is left." People wanted to glance at the remaining time from the home screen and the lock screen. The place that answers that wish is the Dynamic Island.

Rork Max generates native Swift, but a feature like a Live Activity, which pushes state outside the app, takes more than running the generated scaffold as-is. Adding the extension target, splitting the presentations, and managing the update budget all end up being hand work. Here is the order I used as an indie developer when I wired it into my own app.

The Dynamic Island Is Another Output for Live Activities

Let me clear up a common misconception first. The Dynamic Island is not a standalone API. When you define an ActivityKit Live Activity, that same state flows to both the lock screen banner and the Dynamic Island. Write one state model and you get two presentation surfaces for free.

Once that clicks, the rest is "draw the same data in different shapes." The flip side is that if you do not nail the state model first, both surfaces break together.

Define the State Model

The heart of a Live Activity is ActivityAttributes. Separate the unchanging attributes (a title) from the ContentState that changes moment to moment (the remaining time).

import ActivityKit
import SwiftUI
 
struct TimerAttributes: ActivityAttributes {
    public struct ContentState: Codable, Hashable {
        var endDate: Date
        var isPaused: Bool
    }
 
    var taskName: String
}

Put only values that change on updates into ContentState. Anything fixed after launch, like taskName, lives outside. Drawing that line early keeps the update code thin.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦A three-step path to define ActivityAttributes and ContentState and launch a minimal Live Activity
✦Real DynamicIsland builder code for the compact, minimal, and expanded presentations
✦Seven production gotchas: the 8-hour cap, the update budget, and the APNs header for push updates
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-04-05
Rork Max × WidgetKit & Live Activities in Practice — From Home Screen to Dynamic Island
A complete guide to implementing iOS Widgets, Lock Screen widgets, and Dynamic Island Live Activities with Rork Max. Covers WidgetKit fundamentals, Timeline update strategies, App Intents integration, and monetization.
⬡ Dev Tools2026-07-18
The Generated Screen That Quietly Jams at AX5 and in German — Putting Layout Resilience Checks on Rork Max SwiftUI
A record of running every Rork Max generated SwiftUI screen through pseudolocalization and the largest text size to find exactly where it jams. Covers when to reach for ViewThatFits, ScaledMetric and layoutPriority, plus the snapshot checks that catch regressions every time you regenerate.
⬡ Dev Tools2026-05-17
Testing Rork Max SwiftUI Features on a Real Wallpaper App — What Worked, What Needed Fixes
I benchmarked Rork Max's SwiftUI generation against the production code of a wallpaper app I actually run. Here is what shipped as-is, what needed fixing, and what I ended up writing by hand — with working code and on-device measurements.