Create Your First AI Chatbot with SwiftUI & Foundation Models
Learn to build an AI-powered chat app using Apple's Foundation Models framework in this step-by-step tutorial. 🤖

Karin Prater
5.9K views • Jul 15, 2025

About this video
Building a AI powered Chat App with Apple's New Foundation Models Framework In this tutorial, we dive into Apple's new Foundation Models framework introduced at WWDC 2025, which allows you to use Apples local LLMs in your apps. You will learn about the device requirements, setting up the framework, and implementing a chatbot for dog-related inquiries. We'll also explore prompt engineering, streaming responses, and session management to build a production-ready app. By the end, you'll have a fully functional app that offers sophisticated, AI-driven responses to dog-related queries. Check out the continuation in the next video where we explore tool calling!
To test the new Foundation Models Framework, you will need the new Xcode 26. You can run it in the simulator if your mac uses macOS Tahoe and has Apple Intelligence enabled.
## ⬇️ Download project files
https://school.swiftyplace.com/f/project-files-foundation-models-framework
### Supported Devices
iPhone (must run iOS 26+ and have A17 Pro or newer)
- iPhone 15 Pro & 15 Pro Max
- iPhone 16, 16 Plus, 16 Pro, 16 Pro Max, 16e
iPad (requires A17 Pro or M1+)
- iPad Pro (M1 or later) — 5th gen (2021) and newer
- iPad Air (M1 or later) — 5th gen (2022) and newer
- iPad mini (A17 Pro chip) — 7th gen (2024)
Mac
- Any Mac with Apple Silicon (M1, M2, M3, M4 series)
### Outline
00:00 Introduction to Apple's Foundation Models Framework
03:25 Availability and Supported Devices
06:53 Checking Model Availability in Code
12:31 Write you first generating chat responses
15:59 Errors: What can go wrong
18:47 Exploring Model Specifications
22:12 Building a Pet Trainer chatbot
24:08 LanguageModelSession: Settings and behavior
29:38 Streaming Responses for better UX design
31:13 Connecting the View Model
35:31 Animating the UI
37:29 Handling User Input and Responses
45:38 Restarting a new chat session
47:56 What`s next
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my macOS development course https://learn.swiftyplace.com/macos-development-swiftui-course
👨💻 my Core Data and SwiftUI course https://learn.swiftyplace.com/swiftui-core-data-mastery-course
👩🏻💻 SwiftUI layout course
https://learn.swiftyplace.com/swiftui-layout-course
👩🏻💻 Combine Framework course
https://learn.swiftyplace.com/the-swifty-combine-framework-course
-----------------
What to Watch Next
https://youtu.be/mHvw7Tbhwa4
-------------------
👉 About Karin Prater
Hi, I’m Karin Prater—an iOS developer and educator helping you master Swift, SwiftUI, and real-world iOS app development. I create no-fluff tutorials on SwiftUI architecture, UIKit, Combine, Core Data, and how to build iPhone and macOS apps with best practices. Subscribe for weekly deep dives into Xcode, Swift design patterns, and everything you need to grow as an Apple developer.
New videos every week on iOS development, SwiftUI, and app architecture that actually scales.
#SwiftUI #foundationmodels
To test the new Foundation Models Framework, you will need the new Xcode 26. You can run it in the simulator if your mac uses macOS Tahoe and has Apple Intelligence enabled.
## ⬇️ Download project files
https://school.swiftyplace.com/f/project-files-foundation-models-framework
### Supported Devices
iPhone (must run iOS 26+ and have A17 Pro or newer)
- iPhone 15 Pro & 15 Pro Max
- iPhone 16, 16 Plus, 16 Pro, 16 Pro Max, 16e
iPad (requires A17 Pro or M1+)
- iPad Pro (M1 or later) — 5th gen (2021) and newer
- iPad Air (M1 or later) — 5th gen (2022) and newer
- iPad mini (A17 Pro chip) — 7th gen (2024)
Mac
- Any Mac with Apple Silicon (M1, M2, M3, M4 series)
### Outline
00:00 Introduction to Apple's Foundation Models Framework
03:25 Availability and Supported Devices
06:53 Checking Model Availability in Code
12:31 Write you first generating chat responses
15:59 Errors: What can go wrong
18:47 Exploring Model Specifications
22:12 Building a Pet Trainer chatbot
24:08 LanguageModelSession: Settings and behavior
29:38 Streaming Responses for better UX design
31:13 Connecting the View Model
35:31 Animating the UI
37:29 Handling User Input and Responses
45:38 Restarting a new chat session
47:56 What`s next
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my macOS development course https://learn.swiftyplace.com/macos-development-swiftui-course
👨💻 my Core Data and SwiftUI course https://learn.swiftyplace.com/swiftui-core-data-mastery-course
👩🏻💻 SwiftUI layout course
https://learn.swiftyplace.com/swiftui-layout-course
👩🏻💻 Combine Framework course
https://learn.swiftyplace.com/the-swifty-combine-framework-course
-----------------
What to Watch Next
https://youtu.be/mHvw7Tbhwa4
-------------------
👉 About Karin Prater
Hi, I’m Karin Prater—an iOS developer and educator helping you master Swift, SwiftUI, and real-world iOS app development. I create no-fluff tutorials on SwiftUI architecture, UIKit, Combine, Core Data, and how to build iPhone and macOS apps with best practices. Subscribe for weekly deep dives into Xcode, Swift design patterns, and everything you need to grow as an Apple developer.
New videos every week on iOS development, SwiftUI, and app architecture that actually scales.
#SwiftUI #foundationmodels
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
5.9K
Likes
188
Duration
49:06
Published
Jul 15, 2025
User Reviews
4.6
(1) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now