Video wird geladen...
Video konnte nicht geladen werden
Generative UI using Foundation Model in iOS 26. I love how the UI changes realtime as the streaming response updates.
26,893 Aufrufe • vor 11 Monaten •via X (Twitter)
11 Kommentare

Working with large amounts of data in FM is tricky due to the limited context window. Tool calling makes it manageable but still requires a lot of tweaking. On the bright side, it’s fully on-device & free.

Got a lot of DMs about details. It’s not true gen UI in sense that the LLM does not generate SwiftUI code. The context window is too small for that. I had to build a mapper for a limited number of SwiftUI components (charts, stacks, labels, etc) the LLM chooses & builds UI.

Scan any documents, convert images into text, PDF files, etc. 👍

Very cool! Share more!

Repo link please

This is built for one of my apps @FinmaMoney But you can check out Apple’s official sample code, it has a nice example of this.

this is the future. sick!

It sure is! Apple has made implementing generative UI really simple. Expect many more apps to offer a chat experience with fully native SwiftUI views.

As more iOS apps integrate this on device model, do you expect it to impacy battery life?

Yes I do. I expect Apple to rate limit the API and even make it unavailable when temps are high.

generative ui is cool, but watch out for the limits. on-device is great, but real-time updates can drain the battery fast if overused. keep it light and efficient.
