RORK LABJP
MAX — Rork Max generates native Swift apps for iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and iMessageNATIVE — It unlocks native capabilities React Native cannot reach: AR/LiDAR, Metal 3D, widgets, Dynamic Island, Live Activities, Siri Intents, and HealthKitRN — Standard Rork builds cross-platform apps with React Native (Expo), a good fit when you want something working fastCHOICE — Pick React Native for speed, or Rork Max when you need Apple hardware and OS integrationPRICE — Rork is free to start with paid plans from $25/mo; Rork Max is $200/moFLOW — Describe the app you want in plain language and Rork produces working code you can ship to the storesMAX — Rork Max generates native Swift apps for iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and iMessageNATIVE — It unlocks native capabilities React Native cannot reach: AR/LiDAR, Metal 3D, widgets, Dynamic Island, Live Activities, Siri Intents, and HealthKitRN — Standard Rork builds cross-platform apps with React Native (Expo), a good fit when you want something working fastCHOICE — Pick React Native for speed, or Rork Max when you need Apple hardware and OS integrationPRICE — Rork is free to start with paid plans from $25/mo; Rork Max is $200/moFLOW — Describe the app you want in plain language and Rork produces working code you can ship to the stores
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 Max169Apple Watch3WidgetKit9SwiftUI50watchOS2

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-03-26
Building Apple Watch Apps with Rork Max — A Complete watchOS Companion App Guide
Learn how to build Apple Watch (watchOS) companion apps using Rork Max. This guide covers SwiftUI-based WatchKit development, iPhone communication, HealthKit integration, and complication implementation.
Dev Tools2026-03-20
Build a Complete Fitness Tracker with Rork Max — HealthKit, Apple Watch, and Widget Integration
A comprehensive tutorial on building a fitness tracker app with Rork Max that integrates HealthKit, Apple Watch, and Home Screen widgets. From architecture design to App Store submission.
Dev Tools2026-06-17
Why Your Rork Max Native Swift Widget Freezes After Day One — Designing the TimelineProvider Refresh Budget
Native Swift home screen widgets generated by Rork Max stop rotating after the first day unless you understand the TimelineProvider refresh budget. Here is how reloadPolicy, App Groups, and deep links fit together in a real app.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →