r/iOSProgramming • • 8h ago

Discussion We went Flutter → React → React Native → Swift for an audio app. Lessons from switching stacks 3 times

Post image

We spent the last year building an audio app (Tapedex): a vertical feed of spoken clips you swipe through, with playback that keeps running when the screen is locked.

We started cross-platform and ended up rewriting it from scratch more than once before landing on Swift. What pushed us there:

  • Smoothness. For a feed you swipe through all day, fast loading and fluid swiping are the whole experience. We never got it feeling quite right cross-platform.

  • Extensibility. Adding new features got easier once we stopped fighting the framework and could use the native APIs directly.

  • Focus. Testing on one platform first is just simpler. We'd rather get iOS really right before thinking about Android.

In hindsight, we probably should have gone Swift from day one for something this interaction-heavy.

Curious what others think: for apps where smooth scrolling and fast loading are core, is cross-platform still viable, or is native the only real option?

4 Upvotes

4 comments sorted by

4

u/Fine-Natural-8645 8h ago

For a swipe feed of short clips I don't think the scrolling itself is the hard part anymore. Flutter and React Native can both scroll smoothly if the list is built carefully. Where cross-platform hurts is everything around the audio, because that's all Apple framework stuff you only reach through a plugin:

  • The audio session. You need .playback plus the audio background mode, and then interruptions (calls, Siri) and route changes, like pausing when AirPods disconnect. Plugins handle the happy path, the edge cases are where people get stuck.

  • Lock screen and Control Center. MPNowPlayingInfoCenter and MPRemoteCommandCenter have to stay in sync with whichever clip is current, and that gets messy when "current" is decided on the Dart or JS side.

  • Start time. What makes a feed like this feel instant is preparing the next one or two clips before the swipe ends: create the AVPlayerItem early, load isPlayable asynchronously, keep preferredForwardBufferDuration small, and set automaticallyWaitsToMinimizeStalling to false so a short clip starts right away. Natively you can drive that straight off the scroll position (scrollPosition(id:) with .scrollTargetBehavior(.paging) in SwiftUI, or a paging collection view). Through a bridge there's always an extra hop.

So I'd say cross-platform is still fine when audio is a side feature. When playback is the product, native is usually the right call, and it's much cheaper to decide that early.

4

u/JesuSwag 4h ago

Any real developer could have told you this.

1

u/[deleted] 4h ago

[removed] — view removed comment

1

u/AutoModerator 4h ago

Hey /u/Seb_Temponap, your content has been removed because Reddit has marked your account as having a low Contributor Quality Score. This may result from, but is not limited to, activities such as spamming the same links across multiple subreddits, submitting posts or comments that receive a high number of downvotes, a lack of recent account activity, or having an unverified account.

Please be assured that this action is not a reflection of your participation in our subreddit. This is simply an automated filter in place to reduce spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.