Stewart Lynch Newsletter 2025-31


Stewart Lynch News
2025-31

Please pass on the subscription link to others in your sphere so I can broaden my reach.
https://stewartlynch.kit.com

Foundation Models Series Episodes 3 and 4

Since the last newsletter, I’ve released two new videos that push deeper into Apple’s Foundation Models Framework — showing how to go beyond simple text generation and start building structured, interactive AI experiences in SwiftUI.

1. Guided Generation with Foundation Models in Swift — Structured AI Responses

Learn how to use the @Generable and @Guide macros to produce structured, type-safe AI output. I walk through two practical examples — a FitnessPal-style workout generator and a live-updating topic title creator — while demonstrating how to handle streaming results, safety guardrails, and predictable SwiftUI integrations.

2. Using SwiftUI Foundation Models Transcripts to Build a Chatbot

In this follow-up, we put it all together by creating a conversational travel agent chatbot powered by on-device intelligence. You’ll see how to manage transcripts with LanguageModelSession, implement dynamic chat bubbles and thinking indicators, and enforce guardrails for safe, natural interactions.

Watch both on my YouTube channel and start building smarter, more interactive SwiftUI apps with Apple’s Foundation Models.

Guided Generation with Foundation Models in Swift — Structured AI Responses

video preview

Using SwiftUI Foundation Models Transcripts to build a Chatbot

video preview

There is still one more video to come in this series and it is perhaps the most useful, but also the most complicated implementation of Foundation Models.

My Channel Listing App

It came as a bit of a surprise when YouTube suddenly broke the ability to embed videos in a WebView, both in SwiftUI and UIKit. That change completely broke my Channel Listing App, which I have made available on Gumroad. You can find it here: https://stewartlynch.gumroad.com/l/obsjz

At first, I had no idea how to fix it. I posted the question on Mastodon, which is my go-to place for Swift discussions, and quickly discovered that I was not the only one having the problem. Others were seeing the same issue.

Fortunately, Fabio (@fabio@iosdev.space) came to the rescue with a clever solution that I never would have found on my own. It involved two key changes:

  1. Injecting several custom headers into the request, including one that spoofed the origin (I used my own domain).
  2. Replacing the standard youtube.com URL with youtube-nocookie.com.

Fabio also shared the UIKit code he used to make it work, which I integrated into the Channel Listing App since SwiftUI’s native WebViews were not yet available. Below is his solution adapted for SwiftUI using a UIViewRepresentable, compatible with versions prior to iOS 26.

I wanted to be able to use the new capabilities of SwiftUI introduced this year so I craeted a native SwiftUI version of this.

No matter which version you use, you get the same result that can display embedded YouTube videos in a SwiftUI view.

Updating the app

The good news is that I’ve fixed and updated the Channel Listing App.

The bad news is that the automatic updater I thought was working in the previous version isn’t. I must have made a mistake in that implementation, which means the update process isn’t functioning for the more than 700 people who have already downloaded and installed the app.

The only solution is to return to your Gumroad account, download the updated version, and reinstall it manually.

If you no longer have access to your Gumroad account, you can simply create a new one and “purchase” another copy of the app — just make sure to enter $0 as the payment amount.

WebApp Version

If you are not installing the native Mac version of the app, you can always use the WebApp version instead. This version can also be used on iPhone and iPad so there are some advantages to using it as well if you want to watch my videos on the go.

You can find out about it at https://stewartlynch.github.io/YouTube/

Milestones Reached

On a more personal note, I’m happy and proud to share that I’ve reached several milestones on YouTube. I recently surpassed 25,000 subscribers and have now uploaded over 400 videos covering Swift and SwiftUI topics. The channel is also closing in on 2 million total views.

All of my videos are free to watch, and if you subscribe to YouTube Premium, you can enjoy them ad-free. For everyone else, thank you for sitting through the ads — they help generate about $200 a month in revenue. Considering that each video takes about three full days to plan, script, record, edit, and publish, it’s safe to say I do this for the love of teaching Swift and SwiftUI. The income is a nice bonus, but thankfully my retirement fund takes care of the rest.

My Other Stuff

Channel Listing App

A Searchable Mac app containing a list of all of my YouTube videos including the ability to watch them in the app and download starter and completed source code

Free on Gumroad

CustomGPT

A custom ChatGPT that has indexed the transcripts of my videos.
Add to your ChatGPT Sidebar

Smile4Me Course

Learn how to build a multi-targeted app using a Jokes API.
Don't let the low cost of the course fool you into believing that low cost means low content. 6.5 hours of content and 56 videos.

Enrol in the course

Affiliate Links

BigMountain Studio Books 

Mark Moeykens is a master at creating SwiftUI reference books. I have purchased every one of these books and refer to them all the time.

Use this link and we both will benefit

https://www.bigmountainstudio.com/a/77jt8

113 Cherry St #92768, Seattle, WA 98104-2205
Unsubscribe · Preferences

Stewart Lynch

Join over 23,000 YouTube subcribers who are mastering Swift and SwiftUI.Level up your iOS development skills with concise tutorials and professional development tips delivered straight to your inbox. Subscribe now for exclusive discounts, insider insights, and curated highlights from my 350+ YouTube tutorials.

Read more from Stewart Lynch

Stewart Lynch News2025-30 Subscribe to my YouTube Channel Please pass on the subscription link to others in your sphere so I can broaden my reach.https://stewartlynch.kit.com Foundation Models Series The Foundation Models video series is officially underway, and the momentum is building! The first video laid the groundwork, showing just how simple it is to make requests to Apple’s on-device large language model, while also covering error handling and device compatibility checks. In the second...

Stewart Lynch News2025-29 Subscribe to my YouTube Channel Please pass on the subscription link to others in your sphere so I can broaden my reach.https://stewartlynch.kit.com Back from France and Recharged My wife and I just returned from a fantastic vacation in France, where we focused on two incredible cities: Lyon and Avignon. We spent a week in each, exploring the cities themselves and taking train and bus trips to nearby towns and the surrounding countryside. The region’s history is...

Stewart Lynch News2025-28 Subscribe to my YouTube Channel Please pass on the subscription link to others in your sphere so I can broaden my reach.https://stewartlynch.kit.com New in iOS 26: Glass Toolbars & Transitions in SwiftUI Last Sunday, I released a new video that dives deep into the latest toolbar enhancements and modal sheet behaviors introduced in iOS 26. You’ll learn about semantic and positional toolbar placements, new glass button styles, navigation subtitles, bottom bar actions,...