RORK LABJP
ENGINE — Rork Max is powered by Claude Code and Claude Opus 4.6, generating native Swift apps directlyCORE ML — Rork Max reaches on-device Core ML inference alongside HealthKit, HomeKit, NFC, and App ClipsSEED — Rork raised a $15M seed led by Left Lane Capital in April 2026, joined by Peak XV and a16z SpeedrunM&A — Rork acquired the app builder Paperline and says it will stay acquisitive to bring in engineering talentMARKET — Gartner expects 75% of new applications to be built with low-code or no-code tools by the end of 2026GROWTH — The no-code AI platform market is projected to grow from $4.9B in 2024 to $24.8B by 2029ENGINE — Rork Max is powered by Claude Code and Claude Opus 4.6, generating native Swift apps directlyCORE ML — Rork Max reaches on-device Core ML inference alongside HealthKit, HomeKit, NFC, and App ClipsSEED — Rork raised a $15M seed led by Left Lane Capital in April 2026, joined by Peak XV and a16z SpeedrunM&A — Rork acquired the app builder Paperline and says it will stay acquisitive to bring in engineering talentMARKET — Gartner expects 75% of new applications to be built with low-code or no-code tools by the end of 2026GROWTH — The no-code AI platform market is projected to grow from $4.9B in 2024 to $24.8B by 2029
Articles/App Dev
App Dev/2026-06-16Advanced

Building an iMessage Extension with Rork Max to Bring Your App's World into Messages — Notes on Distribution as Code

A walkthrough of adding an iMessage extension to the native Swift project Rork Max generates, sharing your app's assets right inside Messages. Covers compact/expanded presentation, sending messages, and diagnosing why the extension won't appear in the drawer — from an indie developer's distribution lens.

Rork Max219iMessageMessages ExtensionSwift43Distribution2App Extension2

Premium Article

Run an indie wallpaper app long enough and you notice the moment users most naturally recommend it to a friend isn't when they send an App Store link — it's when they drop a favorite image straight into a conversation. If that's true, could I bring the app's world into Messages itself, the very place sharing happens? That question is what led me to build an iMessage extension.

An iMessage extension is a native mechanism that depends on the Messages framework. It's effectively out of reach from React Native, but because Rork Max generates a native Swift project, you can add an extension target and subclass MSMessagesAppViewController. Here I'll work through presentation switching, sending messages, and the pitfalls — all through the lens of distribution.

Why a Messages extension instead of the main app

Send an app pitch as a store link and the recipient has to leave the conversation to open the App Store. An asset sent from an iMessage extension, on the other hand, stays in the conversation, and the recipient can engage with it right there. In my experience, the psychological distance to "maybe I'll try this" is dramatically shorter with the latter. For a free, AdMob-centric app, adding one more entry point is far from trivial.

That said, the extension is a separate target from the main app, and its memory limit is stricter. Loading assets wholesale hits the ceiling fast. Designing for lightness is the starting point.

Step 1: Add the extension target and share assets with the main app

Add an iMessage extension target to the project Rork Max generated. To share assets (like images) with the main app, enable an App Group and read them through the shared container. Carrying images twice inside the extension bloats both the distribution size and memory.

// Resolve an asset URL from the shared container
func sharedAssetURL(_ name: String) -> URL? {
    let groupID = "group.net.rorklab.sample"
    let base = FileManager.default
        .containerURL(forSecurityApplicationGroupIdentifier: groupID)
    return base?.appendingPathComponent("assets/\(name)")
}

The App Group identifier must match exactly between the main app and the extension. A mismatch leaves the asset always nil on the extension side, and you lose time tracking down the cause.

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
Concrete presentationStyle transition code for switching MSMessagesAppViewController between compact and expanded layouts
How to assemble an MSMessage that attaches an asset like a wallpaper, and design how it persists in the recipient's conversation
How to diagnose the production symptom of an extension never showing in the Messages drawer, down to target settings and bundle structure
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

App Dev2026-07-05
Rork Max (Swift) or the Standard Version (React Native): How to Decide as a Solo Developer
Stuck between Rork Max's native Swift and the standard React Native version? Here is a practical decision framework built from a solo developer's perspective, weighing cost, feature boundaries, and how easy each path is to migrate later.
App Dev2026-07-03
Making Your Rork Max App Resilient to Dropped and Restored Connections: Offline Detection and Retry with NWPathMonitor
Build networking that survives a lost signal in your Rork Max native Swift app with NWPathMonitor. Detect offline states, respect Low Data Mode and cellular, and auto-resend queued work on reconnect — all with working Swift code.
App Dev2026-07-03
Keeping Downloads Alive After Your Rork Max App Is Killed: Background URLSession Design and Relaunch Handling
How to design downloads in a Rork Max native Swift app so transfers continue in the OS daemon even after the app is suspended or terminated. Covers relaunch wiring, resumeData recovery, and measured isDiscretionary behavior with working code.
📚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 →