# google-gemini/generative-ai-swift architecture

> Architecture diagram of the GitHub repository google-gemini/generative-ai-swift, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/google-gemini/generative-ai-swift
- Repository: https://github.com/google-gemini/generative-ai-swift

## Overview

This repository contains only a README: it identifies an obsolete Google AI Swift SDK for the Gemini API and explicitly directs developers to Firebase AI Logic instead. With no source files or implementation details available, this is a product-status and migration map, not a runtime architecture.

Main entry points: [`README.md`](https://github.com/google-gemini/generative-ai-swift/blob/main/README.md) (Obsolete Swift SDK)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_developer(("Mobile developer"))
node_legacy_sdk["Obsolete Swift SDK<br/>[README.md]"]
node_gemini_api["Gemini API"]
node_firebase_ai_logic["Firebase AI Logic"]

node_developer -->|"uses"| node_legacy_sdk
node_legacy_sdk -->|"targets"| node_gemini_api
node_developer -->|"use instead"| node_firebase_ai_logic

click node_legacy_sdk "https://github.com/google-gemini/generative-ai-swift/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_developer,node_firebase_ai_logic toneIndigo
class node_legacy_sdk toneTeal
class node_gemini_api toneMint
```

## Components

### Other components

- **Mobile developer**
- [Obsolete Swift SDK](https://github.com/google-gemini/generative-ai-swift/blob/main/README.md): `README.md`
- **Gemini API**
- **Firebase AI Logic**

## Connections

- Mobile developer → Obsolete Swift SDK: uses
- Obsolete Swift SDK → Gemini API: targets
- Mobile developer → Firebase AI Logic: use instead
