Welcome to the Apple Foundation Model Framework Examples project! This repository showcases practical examples, demos, and experiments using Apple’s new Foundation Models Framework introduced at WWDC 2025.
This project uses Apple’s Foundation Models Framework to summarize long transcript text into five concise lines. It leverages on-device machine learning to extract key ideas and present them in a clear, readable format.
National Park Trip Planner is a SwiftUI-powered app that helps users plan personalized 3-day itineraries for U.S. national parks. With just a tap, the app generates detailed day-by-day activity suggestions tailored to each park—highlighting scenic spots, hiking trails, and must-see landmarks. Whether you're visiting Yosemite or the Everglades, this app offers an easy, engaging way to explore the best each park has to offer. All recommendations are generated on-device using Apple's Foundation Models framework for privacy and speed.
- If you can fix the animation bugs then please do a pull request. Thanks in advance.
Jokes is a SwiftUI app that uses Apple’s Foundation Models Framework to generate and display classic dad jokes. It showcases how to integrate Tool-based AI functionality using LanguageModelSession and @Generable types. The app includes a custom DadJokesTool that returns random puns, demonstrating how to build and register tools that respond to natural language prompts. Ideal for learning how to use tools in the Foundation Models ecosystem for interactive, AI-powered features.
Turn Ingredients into Recipes – Powered by AI Discover delicious recipes based on what’s in your kitchen. Just select the ingredients you have—like tomatoes, chicken, spinach, or garlic—and get personalized, easy-to-follow recipes instantly.
This app uses Apple’s new Foundation Models framework to understand your ingredient selections and generate creative, high-quality recipes with natural language intelligence. Whether you're trying to reduce food waste, find dinner ideas fast, or experiment with what’s in your fridge, this app is your smart kitchen companion.
Swift Exams is an iOS app that leverages Apple’s Foundation Models framework to generate customized Swift programming quizzes based on the user’s skill level. Designed with SwiftUI and running entirely on-device, this app provides a secure and responsive learning experience for Swift developers.
📱 Features 🧠 AI-Generated Questions: Uses Apple’s Foundation Models to generate multiple-choice questions tailored to different skill levels.
🎯 Skill Levels: Choose from beginner to advanced levels to match your learning goals.
📝 Interactive UI: Clean, SwiftUI-powered interface to select answers and view instant feedback.
🏆 Score Summary: View your results with an intuitive score overlay.
🔐 On-Device Intelligence: All AI processing happens on-device using Apple’s LanguageModelSession.
Want to learn more check out my course Getting Started with the Foundation Models Framework.
