◉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-18Advanced

Building Apple Watch Complications with WidgetKit in a Rork Max App

A concrete walkthrough for adding watchOS complications and Smart Stack support to a SwiftUI app generated by Rork Max, covering target setup, cross-process data sharing, and timeline design.

Rork Max235Apple Watch3WidgetKit11SwiftUI66watchOS

✦ Premium Article

Putting one number from your app onto the watch face. It sounds small, but it tends to linger as a long piece of homework after you ship a Rork Max app. As an indie developer, in my own work — the wallpaper and habit-tracking apps I keep running — I left them in a "the phone app works, but nothing shows up on the wrist" state for a while. A complication occupies a tiny area, yet it sits exactly where users glance dozens of times a day. Whether you can claim a spot there has a direct line to retention.

This article covers adding watchOS complications to a SwiftUI app generated by Rork Max after the fact, all the way through to getting picked up by the watchOS Smart Stack. I'll lay out where Rork can carry the load and where you have to write the code yourself, with the actual implementation alongside.

Since watchOS 9, complications live in WidgetKit

The first thing to internalize is that complications are now written with WidgetKit, not ClockKit. The ClockKit complication APIs were deprecated in watchOS 9, and today you describe them with the exact same Widget protocol you use for iPhone home-screen widgets. If you've written an iOS widget even once, most of that knowledge transfers directly.

Complication layouts are expressed through the four accessory widget families.

FamilyWhere it appearsBest for
accessoryCircularCircular complication slotsA progress ring or single value
accessoryRectangularWide slots and the Smart StackA title plus 2–3 lines
accessoryInlineThe single line atop the faceShort text with an SF Symbol
accessoryCornerThe four corners of the faceA small value with a gauge

Rork Max generates the SwiftUI app itself, but it does not create the watchOS widget extension target for you. That part is a manual job you do in Xcode. Rork Max advertises a no-Xcode flow, but that applies to shipping the main app as-is; the moment you add a separate target like a widget extension, you need to open the exported project in Xcode once. I've come to treat that switch as "the end of what I delegate to Rork."

Lay the foundation: targets and data sharing

A widget extension runs in a different process from your main app. That means it cannot read the data your main app holds directly. The bridge between them is an App Group shared container.

In Xcode, add a Widget Extension via File > New > Target. Be careful to create it as a watchOS target. Then add the same App Group (for example, group.net.dolice.myapp) to the Signing & Capabilities of both the main app and the widget extension.

Writes to the shared container happen on the main-app side. The cleanest approach is to slip a thin bridge over the data layer that Rork Max generated.

import Foundation
import WidgetKit
 
enum SharedStore {
    static let appGroup = "group.net.dolice.myapp"
 
    private static var defaults: UserDefaults? {
        UserDefaults(suiteName: appGroup)
    }
 
    // Called from the main app. When the value changes, also ask the widget to reload.
    static func saveStreak(_ days: Int) {
        defaults?.set(days, forKey: "currentStreak")
        WidgetCenter.shared.reloadTimelines(ofKind: "StreakComplication")
    }
 
    static func loadStreak() -> Int {
        defaults?.integer(forKey: "currentStreak") ?? 0
    }
}

The key here is WidgetCenter.shared.reloadTimelines(ofKind:). Writing to the shared container alone will not refresh the complication. You have to explicitly request a reload at the moment the main app updates the value. Rork Max's generated code handles navigation and state management carefully, but it won't manage a cross-process reload request for you. Assume you'll add this by hand, and you'll save yourself the later "why is the number on the face stale?" headache.

✦

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
✦The exact target layout and App Group design for bolting a watchOS widget onto Rork Max's generated code
✦Serving all four accessory families from a single WidgetKit entry
✦Designing TimelineEntryRelevance and an update budget so the Smart Stack surfaces your complication
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-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.
⬡ Dev Tools2026-05-12
Building a Shared UI Component Library with Swift Package Manager in Rork Max
A practical guide to building a shared SwiftUI component library with Swift Package Manager for indie developers running multiple apps — eliminate duplicate code across wallpaper, healing, and similar app families.