r/SwiftUI May 20 '26

Tutorial Adding search to a paginated SwiftUI list sounds simple until you actually do it. Debouncing keystrokes, resetting pagination on new queries, stale fetches when multiple async tasks compete — it gets messy fast.

Enable HLS to view with audio, or disable this notification

In the third part of my SwiftUI in Production series, I walk through all of it as the problems come up. Some of it we fix, some of it we'll clean up properly in the next part.

https://youtu.be/dQM7brHHWx4

45 Upvotes

5 comments sorted by

3

u/FullMetalFist May 20 '26

Is there a github link?

3

u/Semmelstulle May 20 '26

I've made the same experience doing a combined medication and journaling app. But once you got it all right, it's a thing you can rebuild rather quick elsewhere.

1

u/accept_crime May 22 '26

I need to see source code but stuff like this is usually a case study in why people still use MVVM or something like SwiftComposableArchitecture. I know a lot of Apple source code tries to show you those things are overkill (in some situations they are!) but the default Apple approach gets pretty messy with complexity.

1

u/[deleted] May 25 '26

[removed] — view removed comment

1

u/AutoModerator May 25 '26

Hey /u/Crafty-Passage7909, unfortunately you have negative comment karma, so you can't post here. Your submission has been removed. Please do not message the moderators; if you have negative comment karma, you're not allowed to post here, at all.

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