◉RORK LABJP
●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left
Articles/Dev Tools
⬡ Dev Tools/2026-06-30Advanced

Take One Contact, Not the Whole Book — iOS 18's ContactAccessButton

iOS 18 adds a limited tier to contacts access. With ContactAccessButton you can receive just the one contact a user picks, without ever asking for the whole address book. Assuming the native Swift Rork Max generates, here is the design and implementation.

ContactsiOS 184ContactAccessButtonRork Max236Privacy10

✦ Premium Article

The moment someone taps "invite a friend," up comes "App Name would like to access all your contacts" — and plenty of people freeze right there. As an indie developer who has shipped apps for years, I see that for someone who only wants to share one person, demanding the entire address book is an obviously lopsided trade.

iOS 18 adds a "limited" tier to contacts access. And by placing a ContactAccessButton, you can hand your app only the contact the user picks on the spot — without even showing a permission dialog. No full access required. Assuming the native Swift Rork Max generates, we will walk the design and the implementation.

The problem when it was "all or nothing"

Contacts used to be effectively binary: show everything, or show nothing. Even a user who wants to invite one person was asked for full disclosure, and a denial killed the whole feature. At indie scale, that single denial often becomes a drop-off.

iOS 18's limited access breaks the binary. The user shares "just this person and that person," and the app reads only that range. ContactAccessButton folds that selection into a single button.

Place the ContactAccessButton

ContactAccessButton is a SwiftUI view. Give it a query string and it finds matching contacts internally, handing the app only the one the user taps. The key point: the button itself shows no permission dialog.

import SwiftUI
import ContactsUI
import Contacts
 
struct InviteField: View {
    @State private var query: String = ""
    @State private var picked: [String] = []   // identifiers received
 
    var body: some View {
        VStack {
            TextField("Search by name", text: $query)
                .textFieldStyle(.roundedBorder)
 
            ContactAccessButton(queryString: query) { identifiers in
                // Only the contact the user tapped arrives here
                picked.append(contentsOf: identifiers)
                fetchPickedDetails(identifiers)
            }
            .frame(height: 44)
        }
    }
}

Candidates matching the typed name appear inside the button, and only the tapped one returns as identifiers. You receive the one contact you need without ever requesting read access to all of them.

✦

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
✦Receive only the contact a user picks — no full-access prompt — with ContactAccessButton (working SwiftUI included)
✦Use the limited authorization and ContactAccessPicker to let users widen or narrow what they share later
✦A migration path from full-access code and the pitfalls of keeping features alive when access is denied
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
Reading Rork Max's SwiftUI Generation Through a Wallpaper App's Requirements — What to Trust, What to Fix, What to Write by Hand
Typical wallpaper-app requirements — grid, pinch-zoom, slideshow, photo-library permission, ads, in-app purchase — handed to Rork Max's SwiftUI generation: where the output tends to hold up and where it tends to break. For the memory failure that bites first, this note includes decode-time downsampling, a bounded cache, and a procedure for measuring on your own device.
⬡ Dev Tools2026-05-16
Migrating Firebase CocoaPods to SPM in Rork Max Apps
Firebase stops publishing new Apple SDK versions to CocoaPods in October 2026 (Firebase 12 is the last major release). Here's a detailed migration log from moving 4 Rork Max iOS apps to Swift Package Manager — including dSYM failures, module errors, and the Dropbox conflict copy problem you'll definitely hit.