r/iOSProgramming • • Jun 19 '26

Article iOS CI just got a unification: devicectl now works across devices and simulators

Thumbnail
bitrise.io
26 Upvotes

r/iOSProgramming • • Jun 20 '26

Question Hello. I am having some issues with MultipeerConnectivity.

Thumbnail
gist.github.com
2 Upvotes

I'm at a loss. I can't for the life of me figure out what I'm doing wrong. I've cross referenced just about every thing I can find on multipeer and I can't see where I'm going wrong. I would quite appreciate some help.


r/iOSProgramming • • Jun 19 '26

Question How to achieve custom UI for TabView item with role search/prominent?

Post image
23 Upvotes

I found an app (The Outsiders) where they customized the UI of the „standalone“ tab bar item and wanted to try and replicate it in a simplified way. More specifically, I’m trying to figure out how they changed the background color of the item. I’ve tried everything I could think of with both a UIKit and a SwiftUI tab bar, but haven’t had any luck.

Does anyone know how they did this? Is this some kind of UIKit private API magic or am I missing something? Any help would be greatly appreciated.

Cherry on top: they even animate the content in the button when it initially loads.


r/iOSProgramming • • Jun 18 '26

Discussion Lessons learned shipping iCloud/CloudKit sync between two users — no account, no server

56 Upvotes

I shipped an app where two people (in my case two parents) share and sync the same data in real time, with no login, no account system, and no backend of my own — just CloudKit. Here are the things I wish I’d known before starting.
1. Private vs Shared database is the whole game.
Your own data lives in the private database. The moment you want someone else to see it, it has to move into a shared zone via CKShare. I underestimated how much the data model has to be designed around sharing from day one — retrofitting it later is painful. Decide early what’s “mine” vs “ours”.
2. CKShare + a custom zone, not the default zone.
You can’t share records that live in the default zone. You need a dedicated CKRecordZone for the shared root record. I lost time before realizing the default zone simply doesn’t support what I wanted.
3. The share-acceptance flow is easy to get wrong.
The second user accepts via a CKShare.Metadata (system share sheet → userDidAcceptCloudKitShareWith). Handling that entry point cleanly — especially cold launch vs app already running — took more iterations than the sync logic itself.
4. Conflict handling is on you.
CloudKit gives you server record changes, but “two people edited the same thing” resolution is your problem. I went with last-writer-wins on a per-field basis, which is fine for my use case but you should consciously pick a strategy, not discover you need one in production.
5. Test with two real iCloud accounts on two real devices.
The simulator + one account hides a lot. Most of my real bugs only showed up with two physical devices on two different Apple IDs.
The payoff: zero server cost, zero auth code, privacy by default (data lives in the users’ iCloud, not mine). The tradeoff: you live inside CloudKit’s constraints and you can’t just SELECT * FROM.
Happy to go deeper on any of these if useful. Curious how others handled conflict resolution — did anyone go beyond last-writer-wins without a server?