Stewart Lynch Newsletter 2025-32


Stewart Lynch News
2025-32

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

Foundation Models Series Complete

The entire Foundation Models Series is now complete and available for free on YouTube.

You can find them all though this playlist link: https://tinyurl.com/28wk2s6z

Attributed Strings and RichText App

I mentioned this in an earlier newsletter, but the first video in my three part series on Attributed Strings was released on Sunday, November 23. In this video, I walk you through how to use the new Attributed String API in SwiftUI introduced for OS 26. It is far easier than you might expect, and I show you how to build a custom toolbar that attaches to the keyboard to streamline the user experience.

video preview

The next two videos in the series will focus on storing attributed strings in SwiftData, just as you would store any other Swift primitive. I had planned to cover this much earlier in the WWDC 25 series, but the sample app Apple released after WWDC made the process look far more complicated than it really was. I even posted about it on social media and several people agreed with me.

Then one day Alex (@ifritlabs) replied and said he had no trouble saving attributed strings in SwiftData. That made me wonder if I had misunderstood something. I gave it another try, and whether Apple refined the behavior or I simply approached it with fresh eyes, it turned out to be incredibly straightforward.

So this short series was born. By the end you will have a simple Notes style app that uses attributed strings and SwiftData to store rich text with ease.

Finding Joy in the Process of Learning and Teaching

When I start planning a video on a new topic, I almost always create an accompanying app to help demonstrate the concept. Many of you know that I began my career as a school teacher in the 1970s, before personal computers were widely available. With a degree in Mathematics, I taught high school math and later computer science.

I have always taken pride in preparing clear, structured lesson plans that made the material accessible to students at any level. Nothing made me happier than building an example that started simple and gradually grew into something more advanced. That same approach guides the way I create my videos today.

Every so often, I come up with an example that feels like the perfect illustration of the topic. When that happens, the entire process becomes a joy. There is a real sense of accomplishment that is hard to put into words. Often the subjects I teach are ones I have struggled with in the past or only had a surface understanding of. Teaching forces me to learn the material deeply, and by the time I finish writing the script, I understand it even better.

I usually script and record videos well before their release dates. When I have one recorded but not yet edited, it is tempting to rush it out because I want to share the excitement that comes from finally mastering the topic myself. I hold back, though, especially when I am in the middle of a series and want everything to follow a logical flow.

Currrently, I have two videos in production that have given me that same feeling of satisfaction. One covers adding headers to WebViews, and the other focuses on mastering Preview Traits. They will be published in the coming weeks, and I hope you enjoy them as much as I have enjoyed creating them.

The Reluctant Traveler - Vancouver, BC

I am a huge fan of Eugene Levy and have always enjoyed his work. I especially loved Schitt’s Creek and consider it one of the best sitcoms ever made. He now has a series on Apple TV called The Reluctant Traveler, and in the Season 3 finale he visits my hometown of Vancouver, BC.

The episode feels like a love letter to the city. The market I still bike to, the mountain only fifteen minutes away where I still ski, the bars I used to close down. Every frame shows a place that has been part of my life. It made me proud all over again to call this city home, and I cannot imagine ever leaving.

I highly recommend watching it. And if you ever find yourself in the Vancouver area, let me know and we can meet up for a coffee or a beer.
https://www.apple.com/ca/tv-pr/originals/the-reluctant-traveler/

Preview Tip for Crashes

I was recently working with someone on a SwiftData project and during the process, we changed the schema of the data model and the Preview started crashing. I was able to delete the app from the simulator and the app installed and ran fine. The problem was just with the Preview. Well, the Preview maintains a cache of its own and the SwiftData SQLite database used in the preview had to be deleted. So how can you do that?

Turns out, the easiest was is to issue a terminal command
xcrun simctl --set previews delete all
That command wipes out all simulator data used specifically by Xcode Previews

It forces Xcode to rebuild its preview-specific simulator devices. This can fix issues such as:

  • Previews refusing to load
  • Previews stuck on “Preparing…”
  • Corrupt preview simulators
  • Previews crashing immediately

Is it safe?

Yes. It does not touch your regular iOS Simulators, only the hidden preview ones. Xcode just recreates them the next time you open a preview.

If you are running into preview failures, this is one of the go-to reset commands.

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-31 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 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...

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...