Sabitlenmiş Tweet
Edward Sanchez
37.9K posts

Edward Sanchez
@edwardsanchez
iOS & macOS designer / Swift Engineer. Lover of small details. 9 years designing at Apple, 5 on Xcode team.
San Francisco, CA Katılım Haziran 2010
933 Takip Edilen8.6K Takipçiler

@DanielStormApps Yeah I tried, using collection view. Got to other issues. It’s a big undertaking to get it to do all the things that are needed. I’ve been trying for a while and it’s one issue after another.
English

@edwardsanchez Have Claude/Codex do it in UIKit. One subclass wrapper to hide all the hacks and you should be good to go for the majority of this.
English

I think if someone offered me a ScrollView replacement that handled chat-like (inverse scrolling) behavior in SwiftUI (even UIKit) for $10,000. I'd pay for it gladly. Never have I ever been more frustrated by having to do something seemingly so simple yet at every step of the way there's another gotcha.
I think I must have spent over a billion tokens on this problem and nothing.
English

Messages style chat in UIKit built with CollectionView
Supports streaming, custom messages, and auto scroll to end
Built 100% in codex with gpt 5.3/5.4
Edward Sanchez@edwardsanchez
I think if someone offered me a ScrollView replacement that handled chat-like (inverse scrolling) behavior in SwiftUI (even UIKit) for $10,000. I'd pay for it gladly. Never have I ever been more frustrated by having to do something seemingly so simple yet at every step of the way there's another gotcha. I think I must have spent over a billion tokens on this problem and nothing.
English

@ephemeralapps I think this is the only way. Collection view port.
English

@YongLang61242 Impressive! I think I need to write something up with feature request list. It’s long. Let me get back to you.
English

@edwardsanchez I think I can solve the problem you’re encountering, but I need you to specify what features the chat list needs to implement. I recently implemented a chat list using SwiftUI that supports iOS 17+.
English

@CameronEhrlich @ephemeralapps 1 billion tokens later says otherwise sadly 😔
English

@edwardsanchez @ephemeralapps I bet codex can do this for you
English

@edwardsanchez is there a marketplace so to speak to find swift packages? I'm considering bundling my on device agent framework into a drop in package for developers so they don't have to go through the pains of developing their own.
English

@ConfusedVorlon @jacobtechtavern When I tried the inversion trick it broke the iOS 26 top blur. M
English

@edwardsanchez @jacobtechtavern You can stick with SwiftUI, but just add one view as a representable.
What do you have against the inversion trick? Pretty sure that's how I dealt with this issue.
English

@ephemeralapps Yeah, I started planning on. Found a package that sort of does it. Just nothing does what I want 100% and making it work is proving hard.
English

@edwardsanchez You could just ask 5.4 in codex - make it collection view based - it can make one that feels good and meets all your reqs in a couple hours
English

@R3H8T Yeah I've considered that. I'm currently trying a UIScrollView with a LazyVStack inside. But then I had to implement a custom ScreenReader to jump to an id.
English

@edwardsanchez I wonder if a UICollectionView with a custom layout would be easier/simpler than a UITableView?
English

@krzyzanowskim Thanks, I hadn't seen this one in my diggings! Will investigate.
English

@edwardsanchez I belive you. Sorry llm hype got you there. it is really frustrating. my best advice to move forward would be forget swiftui and swiftui requirement and go full uikit. it is feasible given project like github.com/MessageKit/Mes… exists
English

developers being like
I'M NOT GONNA BUY THAT READY SOFTWARE THAT SOLVE MY PROBLEM FOR $24.99. I CAN BUILD IT FOR MYSELF
then spend $40 on yapping at claudes and not even beung half there. then spend $200 to save money to more yapping and 3 days latter it start to look and is broken, but one more $200 sub will fix it, this time for sure.

English

@R3H8T Yes, I have... got it sort of working, but currently struggling to port it into my project (SwiftUI) with the agent.
English

@edwardsanchez Have you tried implementing this in UIKit instead? It does sound daunting, to be honest
English

@krzyzanowskim Oh I know. I am trying to port a UIKit ScrollView into SwiftUI but hit other issues when placing it in a navigation stack and stuff.
I just can't believe that inverse scrolling, which is not at all some weird concept, would not be supported properly on either framework.
English

@edwardsanchez believe me or not, but SwiftUI is not meant to
- scrollview
- textview
it's just lack on too many fronts to support this api realiably
English

@jacobtechtavern I am too far deep in SwiftUI at this point to redo everything in UIKit I think. And honestly a little afraid of UIKit too.
You'd think there'd be lots of libraries... yet I have not found a single one that works well and smoothly.
English

If you were using agents, why would you need it to work with SwiftUI? But yeah, this is like universally the most annoying screen to build, bar none. Surely there's like 10 libraries that do this.
But it's 2026, so I suspect you also want to have streaming UI that works smoothly from an AI, right?
English

@krzyzanowskim I wouldn't pay 10k? I swear I would. Right now, if I could try a package that did what I wanted, and I could hit "buy now" and it was $10k. I'd hit that button fast!
English

@edwardsanchez nah, you wouldn't, would you. also, why do you hate yourself and dont use textview without swiftui
English
