product image

Exploring AI for iOS Development

From Apple Intelligence to on-device models using MLX Swift, there is everything that you need to know about working with AI on Apple Platforms.

Overview

Please note: This book is currently in beta and under active development. More chapters will be added soon!

Use the code "STUDENT" for some discount or if the cost of the book is too high for you!

This book starts as a practical guide for iOS, macOS, and visionOS developers in integrating AI models directly into their apps using Apple's MLX Swift framework.

We explore building on-device-AI-powered apps on Apple platforms:

  • Introduction to MLX: Understanding the fundamentals of the MLX framework and its role in the Apple ecosystem
  • Getting Started with MLX Swift: Setting up your development environment and running your first MLX Swift code.
  • Working with Pre-Trained Models: Using existing open-weights models available for different tasks.
  • Model Quantization: Techniques to make large AI models smaller and faster, optimizing them for on-device performance.
  • Text Embeddings: Utilizing models to understand the semantic meaning of text for tasks like search and comparison using MLX Embedders.
  • Customizing Generation: Fine-tuning parameters like temperature and top-k to control the output of generative models.
  • Vision-Language Models: Integrating models capable of understanding and describing image content.
  • MLX Swift Tools: Exploring utilities designed to help with development with MLX Swift.
  • Tool Use with Models: Enabling language models to interact with external tools and APIs.

If you are an Apple platform developer curious about adding on-device AI capabilities to your projects, this guide is here to help you.

Let's explore the possibilities of on-device AI together!

Currently open for pre-order. Buy now to support my work or follow along this the final release before WWDC 2025! (And free incremental releases after WWDC 2025)