Loading video...

Video Failed to Load

Go Home

Generative UI using Foundation Model in iOS 26. I love how the UI changes realtime as the streaming response updates.

26,893 views • 1 year ago •via X (Twitter)

11 Comments

Tanmay's profile picture
Tanmay1 year ago

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.

Tanmay's profile picture
Tanmay1 year ago

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.

Mobile Scanner's profile picture
Mobile Scanner1 year ago

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

Ryan Jones's profile picture
Ryan Jones1 year ago

Very cool! Share more!

Arihant_Marwaha's profile picture
Arihant_Marwaha1 year ago

Repo link please

Tanmay's profile picture
Tanmay1 year ago

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.

screensdesign's profile picture
screensdesign1 year ago

this is the future. sick!

Tanmay's profile picture
Tanmay1 year ago

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.

Vineeth G S's profile picture
Vineeth G S1 year ago

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

Tanmay's profile picture
Tanmay1 year ago

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

Robert Youssef's profile picture
Robert Youssef1 year ago

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.

Related Videos

UI changes in the FoxMcCloud Star Lord Mod
1:04

Sensitive content

UI changes in the FoxMcCloud Star Lord Mod

Apekweit

15,078 views • 1 year ago