Swift PiecesPro
  • Library
    Screens48Finished, designed screens for real apps.Templates10Complete apps built from the screens.Build Kit24Styles, briefs and recipes for your coding agentEverything58The whole library, with search
  • Docs
  • Pro

Library

  • Screens48
  • Templates10
  • Build Kit24
  • Everything58
  • Docs
  • Pro
  • Account
Get Swift Pieces ProFree library ↗
Swift PiecesPro

Production-ready SwiftUI screens and app templates for iOS. The pieces to build the whole app.

Library

  • Screens
  • Templates
  • Build Kit
  • Everything

Product

  • Pro
  • Your account
  • Sign in

Resources

  • Docs
  • CLI
  • MCP and agents
  • Free library

Social

  • X / Twitter
  • GitHub

SWIFTPIECES PRO

© 2026 Swift Pieces. One payment, lifetime access, per-developer commercial license.

Curated withby Saivion

LibraryTemplatesAI Assistant

Template · AI

AI Assistant

Nimbus, an AI assistant: a complete Xcode project with streaming chat, a conversation library, voice mode, widgets and three brand presets.

An AI assistant on a two-tab shell: a streaming chat and the app's settings. A voice call covers the whole app from the chat toolbar or Settings, and Leave call returns to the thread.

SwiftUIiOS 17.0+Xcode project 1.0.0ai-app

Get Swift Pieces Pro

$199 once, every piece included. See how installing works · Sign in

01

What's inside

The screens this template wires together, in the order someone meets them.

Tabs

Chat and Settings on the App Shell, with model, response style, voice and memory settings.

Screen · AI

Chat

A complete AI chat with streaming replies, a composer that stops generation and follow-scroll.

Screen · Account

Settings

A settings home with a collapsing profile header, grouped rows, toggles and sign out.

Screen · Navigation

App Shell

The root of a tabbed app: a floating tab bar, a stack per tab and real reselect behaviour.

Voice

A full-screen call with the orb and live captions, opened from the chat toolbar or Settings.

Screen · AI

Voice Mode

A voice conversation screen around a Metal glass orb with a Siri-style wave, locked to thinking.

02

What's included

SwiftUI source you own, built on Apple frameworks only.

  • Streaming chat with suggestions, and error and retry states
  • A full-screen voice call with the orb and live captions
  • Settings for model, response style, voice and captions, plus a Memory page
  • One place to plug in your model client and realtime voice session

Includes

App Shell, Lessons, Chat, Voice Mode, Settings. Installed together, automatically.

In the Build Kit

AI Assistant (brief). Your agent builds around this template in the same design.

03

Implementation notes

How it behaves, what it handles, and the decisions behind it.

AIAssistantApp is a two-tab app on the App Shell: Chat and Settings. The chat streams replies, offers suggestions on an empty thread and shows error and retry states. A waveform button in the chat toolbar, or Start a voice call in Settings, presents the voice call full screen. A call covers the whole app, tab bar included, and Leave call returns to the thread.

Adapting it

  • Model client: the chat streams from a stand-in client. Give AIChatScreen your own (String) async throws -> AsyncStream<String>.
  • Voice: the call is scripted. Drive its status and captions from your realtime session; VoiceOrb stays on thinking and takes a size and a palette for who holds the turn.
  • Settings: model, response style, voice, captions and the Memory page live in the Settings section of AssistantHome.
  • Theme: set .environment(\.spTheme, …) on AIAssistantApp to re-skin every themed screen.

Notes

  • Not @main: put AIAssistantApp() in your own WindowGroup.
  • The Ask, Research and Agent Task screens pair well with this template when you build your own thread view.

04

Keep building

Pieces that work well next to this one.

Screen · AI

Chat

A complete AI chat with streaming replies, a composer that stops generation and follow-scroll.

Screen · AI

Voice Mode

A voice conversation screen around a Metal glass orb with a Siri-style wave, locked to thinking.

Template · Commerce

Subscription App

Cadence, a subscription habit tracker: a complete Xcode project with onboarding, a StoreKit 2 paywall, SwiftData, widgets and three brand presets.