AI Mastery in SwiftUI

  • Sep 23, 2025

September 23, 2025 Update

šŸ’» Digital Nomading

I'm back in the United States.

I recovered from the flu and made my way back for a celebration at my employer's for something big we all delivered.

My sisters also flew out to visit my brother and me. That was a lot of fun! We took them to see Canyonlands National Park and Arches National Park.

And I'll be staying for another week to attend my nephew's wedding.

From there, I plan to take a train from Utah to Vermont to visit my parents and relatives.

Delicate Arch, Utah

šŸ“˜ AI Mastery in SwiftUI

Guess what?

I finished the first draft!

(That means the book is done, and I'm not planning on adding any more content to it.)

What's next?

Now I go through the feedback and make updates.

So if you have any feedback you'd like to submit, send it within the next couple of days!

Examples & Demo Apps

In the book, I worked to create a variety of examples to allow the reader to get an idea of all the things you can use the FoundationModels framework for, such as:

Basic Text Generation

  • Haiku creator

  • Poem generator

  • Story generator

  • Slogan generator

AI Assistants & Specialized Roles

  • Creative ideation partner

  • Sentiment analyzer

  • FoundationModels expert

  • Fantasy author

  • Travel guide

  • Mystical fortune teller

Structured Data Generation

  • Book recommendation system

  • Exercise generator

  • App idea generator

  • Travel search suggestions

Interactive Features

  • Multi-turn conversation system - Maintains context across multiple exchanges

  • Streaming conversation interface

  • Conversation persistence (multiple solutions)

Tools & Function Calling

  • Book finder tool

  • Horoscope tool

  • Stock information tool

  • Weather tool

I tried not to repeat example prompts, although some might be similar.

Examples in the book have to be very short to get right to the point and teach the topic.

But I wanted to include more complete examples shown in the demo apps, so I'll work on these after finishing the proofreading and feedback.

Transcripts - When to teach?

One of the problems I had with structuring the book was when to talk about session transcripts.

ā“What are session transcripts?

When you talk to AI, a record of your interactions is saved.

LanguageModelSession.transcript

You can access this to see what is happening, debug your interactions, or use the information to make programmatic decisions, such as what to do when you reach the interaction limit.

It is important, and so I wanted to introduce it early, but the problem was that the transcript contains everything taught in the book! (Such as prompts, instructions, generated objects, tool calls, tool responses, etc.)

šŸ’”Introduction & Deep Dive

My solution was to introduce it near the beginning of the book and then dedicate a chapter to it at the end of the book.

This way, when the reader reaches the end of the book, they will be familiar with everything the transcript contains.


A Note for Creators

If you’re a course creator, YouTuber, or blogger, here’s a quick reminder:

You can earn 50% commission on every sale you refer through the Big Mountain Studio Partner Program.

It’s a win-win.

You help others learn, and you get rewarded for spreading the word.


šŸŖ„Join the Waitlist

If you're interested in exploring how to easily add AI features to your apps, make sure to join the waitlist to be notified when "AI Mastery in SwiftUI" is available!

AI Mastery in SwiftUI