---
title: "Working with @Generable and @Guide in Foundation Models"
url: https://daily.dev/posts/working-with-generable-and-guide-in-foundation-models-8kobz6ppa
source_url: https://www.appcoda.com/generable/
type: article
source: "Appcoda"
published: 2025-07-18T04:28:02.133Z
updated: 2025-07-18T04:28:22.270Z
tags: ["ai", "machine-learning", "apple", "ios", "swift"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Working with @Generable and @Guide in Foundation Models

**[Appcoda](https://daily.dev/sources/appcoda)** · 6 min read · 0 upvotes · 0 comments

## Summary

The Foundation Models framework in iOS 26 introduces @Generable and @Guide macros that automatically convert unstructured language model responses into typed Swift structs. The @Generable macro marks structs for automatic conversion, while @Guide provides specific instructions to the model for generating properties like array counts and descriptions. A vocabulary quiz app demonstrates how to generate structured Question objects with text, choices, answers, and explanations directly from model output, eliminating manual parsing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.appcoda.com/generable/>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#machine-learning](https://daily.dev/tags/machine-learning), [#apple](https://daily.dev/tags/apple), [#ios](https://daily.dev/tags/ios), [#swift](https://daily.dev/tags/swift)

[View this post on daily.dev](https://daily.dev/posts/working-with-generable-and-guide-in-foundation-models-8kobz6ppa)
