r/iOSDevelopment • • 5d ago

I built a trip planner in SwiftUI with on-device AI and CloudKit shared trips. Here's the stack

I've spent this year building Journie, a trip planner for iPhone and iPad, as a solo dev. It's on pre-order and comes out December 3. Since this sub is mostly devs, here's how it's put together.

The stack

  • SwiftUI and SwiftData, iOS 18 and up
  • CloudKit with CKSyncEngine for shared trips, so friends can plan together without making an account
  • FoundationModels for Jo, the trip planning assistant, on device where Apple Intelligence is available, with a cloud model everywhere else
  • MapKit for the day by day map and travel times, WeatherKit for forecasts
  • WidgetKit and ActivityKit for widgets and Live Activities

Built on top of it

  • live flight status: gates, delays and baggage belts
  • spends in any currency, converted to your home currency automatically
  • a travel passport that reads only each photo's date and location, on device, and turns them into a stamp for every place you've been

Happy to go into any of these. The part I'd most like to hear about: if you've shipped CKSyncEngine with shared zones, what caught you out after launch?

App Store (pre-order): https://apps.apple.com/app/apple-store/id6791544070?pt=128093447&ct=rd-iosdevelopment&mt=8
Feedback: https://s10n.app/feedback/journie/?from=rd-iosdevelopment

0 Upvotes

11 comments sorted by

1

u/darrenferneyhough 5d ago

the travel passport is a nice idea. how does it handle people who only grant limited photo access, does it nudge them to add more or just stamp what it can see?

1

u/r_sarath 5d ago

Thanks!

Stamps come from two places. Every trip you plan in Journie gets its stamp on its own once the trip's last day passes, no photos needed (upcoming trips sit in the passport as an empty slot with a countdown). The photo import is only for trips from before you had the app.

With limited access the import just stamps what it can see. It reads the date and location of the photos you've shared and groups them into visits (a new visit starts after a 48 hour gap or a 100 km jump), and you keep or skip each one before it becomes a stamp. The app respects your privacy, so it doesn't track other details. If you want more, the "Manage shared photos" button opens Apple's picker, so full access is never required.

I'm still working on this part and already have a couple of updates planned for it. Suggestions are very welcome: what would you want a travel passport like this to do?

1

u/darrenferneyhough 5d ago

that makes sense, nice that full access is never needed. for older trips, is there a way to merge visits? a road trip or a couple of days with no photos could end up split into several stamps by the 100 km or 48 hour rule

1

u/r_sarath 5d ago

Right now, the stamps are being awarded at the country level (following how we usually get stamps in passports), so the above situation is less likely to occur, but I do understand your concern.

I did get a feedback from someone asking it to be more granular and I'm working on implementing it now. I can incorporate your question into the same build and have some kind of grouping/splitting mechanism based on time (or even manual selection).

Thanks for this!

1

u/garythegoatdolphin 4d ago

For cloud models, are you planning to charge them from the day one? I am also building an app but when I did cost estimation, it doesn't make sense economically.

1

u/r_sarath 4d ago

As of now, cloud AI is behind a subscription, but I have applied for Apple's PCC, which will give free users access to much better cloud models for free, although with limits.

I'm also testing out to self hosted models for free users, but like you said, it doesn't make sense economically, plus none of the quantized open weight models are meeting the bar for the AI features the app provides.

2

u/garythegoatdolphin 4d ago

I tried using new Gemma model for my non interactive workflow. It is good but obviously not as good.

1

u/r_sarath 4d ago

You mean gemma4? I had tried it extensively, but it was slow and not good at grounding responses. It used to give random, unrelated answers when asking about some trip related info, probably because it's context window is pretty small and could not understand user preferences well.

1

u/garythegoatdolphin 4d ago

Yes. I meant gemma4. How are you prompting it? Also what is your systems prompt?

2

u/r_sarath 2d ago

It depends on usecase. I have a langgraph agent that handles different use cases, so the prompt used varies based on what user requests, but I've seen other models perform way better than gemma4 in my tests (in terms of context limits, tool calling, security, performance etc).

It took me almost a month to build the agent server because I had to fine tune so many things, and I had to ditch gemma in the first week only because of multiple limitations.

2

u/r_sarath 2d ago

it's not that it is not capable, it is definitely a capable model, it just didn't work for my usecase.