<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim" -->

---
title: Gemini in Apple's Foundation Models framework | daily.dev
description: Apple opened its Foundation Models framework to third-party model adapters starting with iOS 27, macOS 27, iPadOS 27, watchOS 27, and visionOS 27. Firebase now...
canonical: https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Gemini in Apple's Foundation Models framework | daily.dev
og:description: Apple opened its Foundation Models framework to third-party model adapters starting with iOS 27, macOS 27, iPadOS 27, watchOS 27, and visionOS 27. Firebase now...
og:url: https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim
og:image: https://api.daily.dev/og/posts/Oxbtb9nIm.png
og:image:alt: Gemini in Apple's Foundation Models framework
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# Gemini in Apple's Foundation Models framework

**[Firebase](https://daily.dev/sources/firebase-blog)** · 6 min read · 0 upvotes · 0 comments

## Summary

Apple opened its Foundation Models framework to third-party model adapters starting with iOS 27, macOS 27, iPadOS 27, watchOS 27, and visionOS 27. Firebase now offers a preview integration that lets developers plug Gemini cloud models into this framework using the same LanguageModel protocol as Apple's on-device model, enabling easy switching between local and cloud inference. The integration routes requests through Firebase AI Logic, supports App Check attestation for security, and unlocks features like Google Search/Maps grounding, multimodal input, image generation via Nano Banana, streaming responses, and tool calling for agentic behavior. Setup requires adding the Firebase Apple SDK via a preview branch in Xcode.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://firebase.blog/posts/2026/06/apple-foundation-models-gemini>

## Questions this post answers

### How do I use Gemini models instead of Apple's on-device model in the Foundation Models framework?

Initialize your LanguageModelSession with a GeminiLanguageModel instead of a SystemLanguageModel; everything else, including SwiftUI views, @Generable parsing structures, and tool definitions, stays the same. This works because Firebase's integration implements Apple's public LanguageModel protocol, introduced for third-party model adapters starting with iOS 27, macOS 27, iPadOS 27, watchOS 27, and visionOS 27.

_daily.dev helps developers track new Swift AI integrations like this as they move from preview to stable._

### How does Firebase secure Gemini API calls made from an iOS app using Foundation Models?

Firebase App Check attests every request routed through Firebase AI Logic, rejecting calls originating from tampered devices, emulators, or scripts before they reach the Gemini model. Developers configure an attestation provider for their Apple app and enforce it for all client-side Gemini API access, including debug providers during development.

_Teams securing AI features in mobile apps can follow integrations like this one on daily.dev._

### What Xcode setup is required to try the Firebase Gemini integration for Apple's Foundation Models framework during preview?

Add the Firebase Apple SDK through Swift Package Manager, set the Dependency Rule to Branch, and enter wwdc26-preview, since this branch is required to use the integration while it remains in preview. Then add the FirebaseAILogic library, call FirebaseApp.configure() at startup, and import FirebaseAILogic where needed.

_daily.dev keeps developers current on preview SDK branches before they graduate to stable releases._

## Similar posts on daily.dev

- [Experimental hybrid inference and new Gemini models for Android](https://daily.dev/posts/experimental-hybrid-inference-and-new-gemini-models-for-android-cc5bn1znk) · Android Developers Blog · 1 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift), [#firebase](https://daily.dev/tags/firebase), [#google-gemini](https://daily.dev/tags/google-gemini), [#local-ai](https://daily.dev/tags/local-ai)

[View this post on daily.dev](https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Gemini in Apple's Foundation Models framework","url":"https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim"},"datePublished":"2026-08-23T12:19:56.652Z","dateModified":"2026-08-23T12:41:51.498Z","description":"Apple opened its Foundation Models framework to third-party model adapters starting with iOS 27, macOS 27, iPadOS 27, watchOS 27, and visionOS 27. Firebase now...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5934049b14850626b846a659314495b9?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5934049b14850626b846a659314495b9?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Firebase","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase","logo":"https://media.daily.dev/image/upload/s--i395oqZH--/f_auto,q_auto/v1787487448/logos/firebase-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/firebase-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"swift,firebase,google-gemini,local-ai","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase","item":"https://daily.dev/sources/firebase-blog"},{"@type":"ListItem","position":3,"name":"Gemini in Apple's Foundation Models framework"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/gemini-in-apple-s-foundation-models-framework-oxbtb9nim#faq","mainEntity":[{"@type":"Question","name":"How do I use Gemini models instead of Apple's on-device model in the Foundation Models framework?","acceptedAnswer":{"@type":"Answer","text":"Initialize your LanguageModelSession with a GeminiLanguageModel instead of a SystemLanguageModel; everything else, including SwiftUI views, @Generable parsing structures, and tool definitions, stays the same. This works because Firebase's integration implements Apple's public LanguageModel protocol, introduced for third-party model adapters starting with iOS 27, macOS 27, iPadOS 27, watchOS 27, and visionOS 27. daily.dev helps developers track new Swift AI integrations like this as they move from preview to stable."}},{"@type":"Question","name":"How does Firebase secure Gemini API calls made from an iOS app using Foundation Models?","acceptedAnswer":{"@type":"Answer","text":"Firebase App Check attests every request routed through Firebase AI Logic, rejecting calls originating from tampered devices, emulators, or scripts before they reach the Gemini model. Developers configure an attestation provider for their Apple app and enforce it for all client-side Gemini API access, including debug providers during development. Teams securing AI features in mobile apps can follow integrations like this one on daily.dev."}},{"@type":"Question","name":"What Xcode setup is required to try the Firebase Gemini integration for Apple's Foundation Models framework during preview?","acceptedAnswer":{"@type":"Answer","text":"Add the Firebase Apple SDK through Swift Package Manager, set the Dependency Rule to Branch, and enter wwdc26-preview, since this branch is required to use the integration while it remains in preview. Then add the FirebaseAILogic library, call FirebaseApp.configure() at startup, and import FirebaseAILogic where needed. daily.dev keeps developers current on preview SDK branches before they graduate to stable releases."}}]}
```

