|
Stewart Lynch News 2026 - 10
Please pass on the subscription link to others in your sphere so I can broaden my reach. https://stewartlynch.kit.com/
|
|
|
Back from Ireland
I spend a wonderful week in Ireland with my son. Just two guys, eating what we wanted, when we wanted and consuming probably more Guinness than we should have. Lots of great memories for sure.
|
|
|
Videos
Since my last newsletter, I did release the final video on the NetworkManager series but have started back again with some new content. This week's video dives deep into one of Swift's most elegant but underappreciated features: Result Builders. If you've written SwiftUI code, you've already used them and that is a ViewBuilder. It is just a result builder specialized for views. But the real story is how you can create your own, for any type you want.
We start by building a reusable InfoCard view builder function, then move into a Playground to construct result builders step by step, from a simple StringBuilder to a fully conditional MorningChecklistBuilder that adapts its output based on the time of day and day of the week. Along the way, you'll get hands-on experience with buildBlock, buildOptional, and buildEither.
Whether you're looking to write cleaner APIs, build internal DSLs, or just understand what SwiftUI is doing under the hood, this one is worth a watch. Starter and completed projects will be on GitHub as always!
|
|
|
New on the Blog: Generating a QR Code from a String in SwiftUI
While thinking through enhancements for MyLinks, I wanted to add a way to generate a QR code for any link and present it in a share sheet so someone nearby could just scan it. That little feature turned into a blog post.
The post walks through building a clean QRCodeGenerator helper using Core Image's built-in QR filter -- no third-party libraries needed. I used a caseless enum as a namespace so the type can never be accidentally initialized, keeping it purely functional. There are a few gotchas covered too, like why you need to scale the raw Core Image output before converting it to a CGImage, and why pairing that with .interpolation(.none) in SwiftUI keeps the QR code crisp instead of blurry.
The post also covers why two state variables are better than one when building the input UI, and how to handle failure gracefully using ContentUnavailableView.
A full sample project on GitHub goes further with a share sheet, a custom share image that includes both the QR code and the original text, and some polished empty-state handling.
Read the full post
|
|
|
Coming up on the Channel
I have two videos releasing soon that I think you're going to find really useful.
First up is Basics of Markdown for Swift Developers. If you've been using Markdown in your GitHub READMEs, Xcode doc comments, or AI tool responses without ever formally learning it, this one is for you. We cover all the essential syntax you need to know and why, as a Swift developer working with AI tools today, Markdown has become a skill worth owning properly.
Following that is Apple's Hidden AI, where I dive into Apple's on-device Foundation Models framework. This is a powerful feature that doesn't get nearly the attention it deserves, and I'll show you what it can do and how to start using it in your own apps.
Both videos are already available to members early, so if you want to get ahead of the YouTube release, that link is below.
|
|
|
If you enjoy what I do and want to support my work, you can join my Ko-fi community and either make a one-time donation or become a monthly supporter for as little as $5/month. Monthly supporters get early access to my videos as soon as they’re uploaded to YouTube (as unlisted videos), sometimes up to a month before they’re made public. Monthly supporters also get priority responses to their questions, and I’m happy to help with coding challenges.
In addition to PayPal, Ko-fi now supports Stripe, which makes it easier to pay by credit card.
|
|
|
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
SymbolBrowser App
Browse Apple's complete SF Symbols library from your menu bar. Search, preview effects, customize colors, generate SwiftUI/UIKit/AppKit code, and copy symbols as images — all without leaving your workflow. Available on Gumroad: (Pay what you want)
GitHub Directory Downloader for Mac
This simple app lets you download any specific directory from any GitHub repository—whether it's public or private. Just copy the folder URL, paste it into the app, and download exactly what you need. It remembers your download locations, keeps a history of what you've grabbed, and even supports branch selection. Perfect for developers who want quick access to starter projects, code examples, or specific folders without the hassle of cloning entire repositories. Available on Gumroad: (Pay what you want)
Smile4Me Course
The course is now Free to download from: https://stewartlynch.github.io/Smile4Me-Course-Content/
|
|
|
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
|
|
|