Course Introduction

Requirements

- macOS 27.0 and Xcode 27.0 (the project's deployment target is macOS 27.0; the APIs used here go back to macOS 14, but that is not what the repository ships).

- Ollama installed and running: (https://ollama.com). Confirm with curl http://127.0.0.1:11434/api/tags — you should get JSON, not a connection error.

- At least one chat model pulled, for example ollama pull llama3.2. A vision model such as ollama pull llava makes the image-attachment demo in Part 2 much better on camera.

- One Swift package, added in Part 2: swift-markdown-ui(https://github.com/gonzalezreal/swift-markdown-ui).

Build a Private AI Chatbot for macOS Using SwiftUI, Ollama & Local LLMs

Buy nowLearn more

Introduction

  • Course Introduction
  • App Demo

Part 0 - Create The Project

  • Create the project
  • Part-0 Source Code: Starter Project

Part 1 - Talk to Ollama: the Model Library

  • Part 1: Talk to Ollama
  • Part 1: Finished Demo
  • Part 1: Source code

Part 2: Conversations and Chat

  • 01. Part 2: Add Markdown Package
  • 02. Part 2: Conversations and Chat
  • 03 Part2: Finished Demo
  • Part 2: Source Code

Part 3: The sidebar: folders, search and export

  • 01. Part 3: Markdown Document
  • 02 Part 3: Conversation List View
  • Part 3: Source Code

Part 4 — Settings and the conversation inspector

  • 01. AppNavigation
  • 02. Settings View
  • 03. Parameter Controls
  • 04. Conversation Inspector View
  • 05. Edit Chat View
  • 06. Edit Content View
  • 07. Edit Conversation List View Edits
  • 08. Final Edit App File
  • Ollama Swift_Part4_Source Code.zip

Part 5 (optional) — The test suite

  • The test suite
  • Ollama Swift_Part 5 Source Code.zip