GitPedia

SwiftAI

iOS app that features a chat powered by ChatGPT and DALL·E 2

From mbabicz·Updated April 23, 2026·View on GitHub·

SwiftAI is a native iOS application built with SwiftUI that integrates: The project is written primarily in Swift, distributed under the GNU General Public License v3.0 license, first published in 2023. Key topics include: chatgpt, chatgpt3, chatgpt4, dalle2, gpt-3.

SwiftAI — Claude & DALL·E iOS App

mbabicz
iOS
Swift
Swift
Powered by Claude
Powered by DALL·E

ABOUT THE PROJECT

SwiftAI is a native iOS application built with SwiftUI that integrates:

  • Anthropic Claude — conversational AI chat with real-time streaming responses, powered by the Claude REST API directly (no third-party wrapper)
  • OpenAI DALL·E 2 — AI image generation from text prompts

The Claude chat uses the claude-sonnet-4-6 model with Server-Sent Events (SSE) streaming for a smooth, real-time experience. Users provide their own API keys directly in the app — no hardcoded secrets.

<img src = "https://user-images.githubusercontent.com/49866616/229373384-c84099f2-0b7b-4b83-b25e-5e6689529951.gif" width="300" height="600" /><img src = "https://user-images.githubusercontent.com/49866616/221298939-329f463f-0383-41ad-aea2-c3a4c536b181.gif" width="300" height="600" />

INSTALLATION

  1. Clone the repository
  2. Open SwiftGPT.xcodeproj in Xcode
  3. Build and run on a simulator or device (iOS 16+)
  4. In the app, tap the ⚙ Settings icon and enter:

CLAUDE CHAT

Real-time streaming chat powered by Anthropic's Claude API:

  • Direct REST integration with https://api.anthropic.com/v1/messages
  • Streaming via URLSession async bytes + Server-Sent Events
  • Conversation history maintained per session
  • Model: claude-sonnet-4-6
<img src = "https://user-images.githubusercontent.com/49866616/220471468-b9a92f20-027d-4258-87fc-c300425d3d17.png" width="286" height="558" /><img src = "https://user-images.githubusercontent.com/49866616/220471564-14265138-4158-4d69-a817-4743ac62279a.png" width="286" height="558" />

DALL·E 2 IMAGE GENERATION

Generate images from text prompts using OpenAI's DALL·E 2:

  • Context menu to share or save generated images to Photos
  • Requires a separate OpenAI API key (entered in Settings)
<img src = "https://user-images.githubusercontent.com/49866616/220471779-1c752dc6-2d30-4c5f-a9b5-8f06f3fb3379.png" width="286" height="558" /><img src = "https://user-images.githubusercontent.com/49866616/220471898-a4b5652b-3d17-4de2-a0c9-071d556c8d02.png" width="286" height="558" />

BUILT WITH

Swift
SwiftUI

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from mbabicz/SwiftAI via the GitHub API.Last fetched: 6/17/2026