Module 1 of 2 in New in iOS 26

Apple Foundation Models

Share
Save for later

Module outcomes

  • Create a chat app using Apple Foundation Models.
  • Recognize trade-offs of running LLMs on-device.
  • Apply guardrails and safe input practices.
  • Use guided generation for structured and dynamic data.
  • Stream responses and integrate external tools.

Covered concepts

  • Foundation Models basics and on-device constraints.
  • Prompts, sessions, and response streaming.
  • Safety, guardrails, and user input handling.
  • Guided generation with @Generable and PartiallyGenerated types.
  • Dynamic schemas and external tool integration.

Module content

IntroductionStart
Using Foundation Models
Foundation Models Sessions
Streaming Model Responses
Conclusion
2
IntroductionStart
Handling Full Context Windows
Conclusion
IntroductionStart
Introducing Guided Generation
Dynamic Guided Generation
Conclusion

Next module

iOS & Swift New
Liquid Glass
Liquid Glass is the new design language for Apple platforms. This module illustrates the process of incorp... more

Instructors

Contributors

Adriana Kutenko

Illustrator

Mina H. Gerges

Final Pass Editor

Over 300 content creators. Join our team.