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

Putting Your Rork Max Native App's Content into iPhone Search — Becoming a 'Findable' App with Core Spotlight

Index the content of the native Swift app Rork Max generates into Core Spotlight, so users reach a specific in-app screen straight from iPhone search. Covers adding, updating, and removing index entries, plus the production trap of stale search results, from an indie developer's view.

Rork Max235Core SpotlightSwift48Search DiscoveryNSUserActivityDeep Linking6

✦ Premium Article

A wallpaper-app user once told me: "I'd love to pull up that one favorite straight from the home screen search." Rather than opening the app, switching tabs, and hunting around, jumping directly to that content from iPhone-wide search (Spotlight) would indeed feel good.

Core Spotlight is what makes this possible. It puts in-app content into the iPhone's search index and lets a tapped search result return to the relevant screen. The fine details are hard to reach through a React Native bridge, but because Rork Max generates native Swift, importing CoreSpotlight lets you build everything from indexing to restoration cleanly. Here I'll work through becoming a "findable" app, centered on add/update/delete and the production traps.

Why it's worth appearing in Spotlight

An indie app, once installed, tends to be forgotten amid daily life. Running several free, AdMob-centric apps myself, I've felt keenly that how you create reasons to return shapes revenue. Indexing into Spotlight is a path where, the moment a user searches for something, your app's content quietly appears among the candidates. It's neither an ad nor a notification — it answers the user's active search calmly, so it doesn't break the experience.

But indexing isn't "set and forget." When content changes, the index must follow, and neglecting this leaves stale search results.

Step 1: Index content as a CSSearchableItem

First, convert in-app content into a CSSearchableItem and register it in the index. The uniqueIdentifier is the key for restoring the content later, so use a stable in-app ID.

import CoreSpotlight
import MobileCoreServices
 
func index(wallpaper id: String, title: String, thumbnail: Data) {
    let attr = CSSearchableItemAttributeSet(contentType: .image)
    attr.title = title
    attr.contentDescription = "Saved wallpaper"
    attr.thumbnailData = thumbnail            // The thumbnail shown in results
 
    let item = CSSearchableItem(
        uniqueIdentifier: id,                 // Restore key. Use a stable ID
        domainIdentifier: "wallpaper",        // The unit for bulk deletion
        attributeSet: attr
    )
    CSSearchableIndex.default().indexSearchableItems([item]) { error in
        if let error = error { print("index failed: \(error)") }
    }
}

Separating domainIdentifier per purpose makes category-wide bulk deletion easy later. I built without deciding this first and struggled to clear entries by group at delete time. I recommend partitioning it in the initial design.

✦

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
✦End-to-end code to index in-app content with CSSearchableItem and return to the right screen from a tapped search result
✦A design that keeps the index following content add/update/delete, plus how to diagnose the production symptom of a stale index
✦The criteria I used as an indie developer to narrow what gets indexed, and a practical approach to keeping reindex cost low
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-03-14
Mastering Deep Linking & Universal Links in Rork Max — Deferred Deep Links, Attribution & Growth
Implement deep linking, universal links, app links, deferred deep links, and attribution tracking in Rork Max apps. Learn growth hacking patterns, install attribution, and user journey optimization.
⬡ 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.