An open API service indexing awesome lists of open source software.

https://github.com/desp0o/swift-foundationmodels

This is a personal playground experimenting with Apple's newly introduced FoundationModel framework. The goal is to explore the capabilities of LanguageModelSession.
https://github.com/desp0o/swift-foundationmodels

ai apple artificial-intelligence beta ios ios26 iosdevelopment large-language-models llm macos macos26 swiftui xcode xcode26

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 🍏 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](https://youtube.com/shorts/Ho4EoBIbaoE?feature=share)