Skip to content

Desp0o/swift-FoundationModels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

🍏 Apple Foundation Model Playground

This is a personal playground experimenting with Apple's newly introduced FoundationModel framework. The goal is to explore the capabilities of LanguageModelSession and @Generable macros for generating structured and intelligent Swift data using Apple Intelligence.

Features 🚀

  • Chat with AI using LanguageModelSession — simple conversational interaction with Apple Intelligence.
  • Generate Recipes by passing selected ingredients to a custom Recipe structure using @Generable.
  • Generate Person Structs using @Generable and @Guide macros — define constraints like age range or hobbies count.

🧠 Concepts

  • @Generable: Automatically generate struct values using Apple Intelligence.
  • @Guide: Provide field-level guidance for better, constraint-aware generation.
  • LanguageModelSession: A session-based interface to interact with Apple’s large language model.

🔧 Tech Stack

  • 🧑‍💻 SwiftUI
  • 🛠️ Xcode 26 Beta 2
  • 📱 iOS 26 Beta 2
  • 💻 macOS 26 Beta 2

Screenshots 📸

1 2 3 4 5

Demo 🎥

Watch the video

About

This is a personal playground experimenting with Apple's newly introduced FoundationModel framework. The goal is to explore the capabilities of LanguageModelSession.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages