r/iOSProgramming • • Jun 26 '26

Discussion spent 2 weeks turning my photo library into a travel map, clustering almost killed me

Post image
0 Upvotes

So I made this app, Atlas. It reads your photo library and turns it into a travel map. Kind of like the Places view in Photos but grouped into actual trips instead of a thousand random pins. Runs entirely on device, nothing gets uploaded.

The clustering was the part I completely underestimated. I figured group by lat/long, done. Nope. One city ends up as like eight separate blobs, an airport gets split in half, and anywhere dense just collapses into one fat dot. I ended up running a few passes and they'd disagree with each other, one says "two places" the other says "same moment," and reconciling that ate most of my time.

Reverse geocoding was the other annoying one. CLGeocoder is rate limited so you can't just throw 40k photos at it. Had to cache hard and figure out what to resolve up front vs lazily.

Also enumerating a big PHAsset library without freezing the UI or eating all the memory was fiddlier than I expected. And screenshots wreck a travel map, so I'm filtering those out with the PHAsset flag plus a bit of Vision, still tuning the false positives.

Anyway, if anyone wants to try it on their own library I've got a few promo codes for a free year. Honestly just want feedback from people who'll notice when the grouping is wrong. Comment or DM.

Mostly curious how you'd have approached the clustering, feel like I might've overcomplicated it.


r/iOSProgramming • • Jun 24 '26

Question Gating functionality behind feature flags is disliked?

15 Upvotes

I've heard that gating features behind a feature flag can have your binaries flagged to Apple? What about in the case where it's legitimately nothing nefarious i.e. just rolling out certain features with caution. Also, on the topic of gated features, I have an admin side of my app that only admin users can see... Will this also be flagged?


r/iOSProgramming • • Mar 24 '25

Question UIKit or SwiftUI First? Exploring the Best Hybrid Approach

12 Upvotes

UIKit and SwiftUI each have their own strengths and weaknesses:

  • UIKit: More performant (e.g., UICollectionView).
  • SwiftUI: Easier to create shiny UI and animations.

My usual approach is to base my project on UIKit and use UIHostingController whenever I need to showcase visually rich UI or animations (such as in an onboarding presentation).

So far, this approach has worked well for me—it keeps the project clean while solving performance concerns effectively.

However, I was wondering: Has anyone tried the opposite approach?

  • Creating a project primarily in SwiftUI, then embedding UIKit when performance is critical.

If so, what has your experience been like? Would you recommend this approach?

I'm considering this for my next project but am unsure how well it would work in practice.