Add openContactsPicker to edit the limited contacts selection on iOS 18+#985
Open
pablogdcr wants to merge 3 commits into
Open
Add openContactsPicker to edit the limited contacts selection on iOS 18+#985pablogdcr wants to merge 3 commits into
pablogdcr wants to merge 3 commits into
Conversation
8d8f5d9 to
c7c7688
Compare
zoontek
requested changes
Jun 15, 2026
… cycle, nil VC guard)
Matches openPhotoPicker and the native CNContactPickerViewController naming.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
iOS 18 added limited contacts access. This adds
openContactsPicker()to let the user update their selection when theContactspermission islimited, same asopenPhotoPicker()does for the photo library (related: #894, #895).Apple only exposes this picker as a SwiftUI modifier (
contactAccessPicker), so the Contacts handler gets a small Swift file presenting it through aUIHostingController. The ObjC handler calls it viaNSClassFromString+ a protocol, which works the same with static libs anduse_frameworks!without touching the module setup.setup.rbnow globs*.swiftand linksContactsUI, and the podspec declaresswift_version.Test Plan
Tested in the example app on an iPhone 16 Pro simulator (iOS 18.6), with both the default pod install and
USE_FRAMEWORKS=dynamic.What's required for testing (prerequisites)?
An iOS 18+ simulator.
Contactsis already enabled in the example Podfile.What are the steps to test it (after prerequisites)?
CONTACTSand pick "Select Contacts" → status islimitedCompatibility
Checklist
README.mdexample/App.tsx)