Skip to content

A SwiftUI chat application showcasing AnyLanguageModel and swift-huggingface

Notifications You must be signed in to change notification settings

mattt/chat-ui-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat UI Swift

A SwiftUI chat application showcasing swift-huggingface and AnyLanguageModel.

Screen.Recording.2025-10-13.at.04.36.04.mov

Note

This project is in active development. Features and APIs may change.

Features

  • Apple Intelligence — Native integration with Apple Foundation Models (macOS 26+) for on-device AI
  • Hugging Face Integration — Connect to Hugging Face with OAuth 2.0 authentication
  • Streaming Responses — Real-time streaming of AI responses for a responsive user experience
  • Chat Persistence — Save and manage multiple conversations
  • MLX Model Support — Download and run models locally using MLX
  • CoreML Integration — Support for CoreML-optimized models
  • GGUF Format Support — Load GGUF models from Hugging Face Hub
  • Model Downloads — Browse and download models directly from Hugging Face
  • BYOK — Bring your own API keys for other inference providers (OpenAI, Anthropic, etc.)

Getting Started

Prerequisites

  • macOS 26 or later
  • Xcode 26+

Installation

  1. Clone the repository
git clone https://github.com/mattt/chat-ui-swift.git
cd chat-ui-swift
  1. Open in Xcode
xed .
  1. Build and run

Press R to build and run the application.

Using Hugging Face Models

To use Hugging Face's Inference API:

  1. Launch the app
  2. Click the sign-in button in the sidebar
  3. Authenticate with your Hugging Face account
  4. Select a Hugging Face model from the model picker
  5. Start chatting!

The app uses OAuth 2.0 to securely authenticate with Hugging Face. Your access token is stored securely in the Keychain and automatically refreshed when needed.

Related Projects

License

This project is available under the MIT license. See the LICENSE file for more info.

Legal

Hugging Face® is a registered trademark of Hugging Face, Inc.

About

A SwiftUI chat application showcasing AnyLanguageModel and swift-huggingface

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages