Swift
32 articles about swift.
ScreenCaptureKit: Complete Swift API Guide for macOS
Comprehensive guide to Apple's ScreenCaptureKit framework - covers SCStream, SCShareableContent, SCContentFilter, audio capture, permissions, and performance on macOS 12.3+.
ScreenCaptureKit Demo App: Build a Working Screen Capture Tool on macOS
Step-by-step guide to building a ScreenCaptureKit demo app on macOS. Covers SCStream setup, display and window filtering, pixel format choices, and a minimal working example you can run today.
Actor-Based Sync Engines and Modular Frameworks for Native macOS Apps
Why actor-based sync engines with modular Swift frameworks produce the cleanest macOS app architecture. Lessons from real native apps using Swift 6 concurrency.
Converting a Website to a Native App with AI Agents
AI agents can automate the migration from web to React Native or Swift. What works, what breaks, and where human judgment is still required.
Debugging MCP Servers with File Logging and Stdio Workarounds
MCP stdio transport makes print-statement debugging impossible - any output to stdout corrupts the JSON-RPC stream. Here is the file logging pattern and stderr approach that actually works.
Managing Internal Swift Packages Across macOS Projects - Symlinks and Local Dependencies
When internal Swift packages are shared across several macOS projects, symlinking the packages into each project works better than versioned registries for
Building a macOS AI Agent with Accessibility APIs and ScreenCaptureKit
How we built a macOS AI agent using Accessibility APIs for UI control and ScreenCaptureKit for visual context - the technical stack behind a native desktop
Modular Architecture for Native macOS Apps: Frameworks, Actors, and File Provider
Building a native macOS app with file syncing and background services requires clean architecture from day one. Here's how to structure Swift frameworks, use actors for concurrency safety, and treat File Provider as a thin adapter.
The Most Important AI Coding Rule - Remove Verbosity and Blathering
When writing Swift and macOS code with AI, the 'remove verbosity and blathering' instruction does the most important work. Concise prompts produce better code.
Why Swift Is the Right Choice for MCP Servers That Need macOS System APIs
Rust produces tiny binaries and fast startup for MCP servers, but when you need deep integration with macOS accessibility APIs, CGEvents, and other system
SwiftUI on macOS 14+ Finally Works - NavigationSplitView and Beyond
macOS 14 is where SwiftUI clicked for desktop apps. NavigationSplitView works properly, performance is solid, and building native macOS apps with SwiftUI is
Actor Reentrancy in Swift - Why Actors Alone Do Not Prevent State Corruption
Swift actors prevent data races but not reentrancy. Every await is a window for interleaving. Here is the TaskGate pattern that closes those windows with concrete code examples.
Why Building a Native macOS App Burns Through AI Tokens So Fast
Parallel agents, Swift compiler strictness, and accessibility tree parsing all contribute to massive token consumption when building native desktop apps
Using Agent Teams as a Product Backend: Bridging Swift Desktop Apps to Claude Agent SDK
We built a Swift desktop app that bridges to the Claude Agent SDK via a local Node.js process. Here is how agent teams can serve as a product backend.
Best Practices for Shipping iOS and macOS Apps with Claude Code
Best practices for shipping iOS and macOS apps with Claude Code. You are still the senior engineer - Claude writes decent code but integration points are
Building a Desktop App 100% with Claude AI
What you learn the hard way building a native desktop email client entirely with Claude. Swift, Rust, and the real challenges no tutorial covers.
Claude Code for Swift/macOS Development - ScreenCaptureKit and Deprecated APIs
Using Claude Code for Swift and macOS development with ScreenCaptureKit, navigating deprecated API struggles, and why CLAUDE.md is the single biggest
Claude Code vs Copilot: The Parallel Agents Advantage for Multi-Language Codebases
Why Claude Code beats GitHub Copilot for multi-language projects. Run 5 parallel agents across Swift, Rust, and Flutter in the same codebase and ship faster.
Codex vs Claude Code for macOS Desktop Development
Why Claude Code wins over OpenAI Codex for native macOS app development - from SwiftUI debugging to Xcode integration and local-first workflows.
Building a Desktop App to Orchestrate 5 Claude Agents in Parallel
How to build a Swift desktop app that runs 5 Claude Code agents in parallel on the same repo - task assignment, progress monitoring, and conflict prevention.
Building an MCP Server That Combines macOS Accessibility APIs With Screen Capture
The biggest unlock for desktop AI agents: an MCP server that wraps macOS accessibility and screen capture so the AI can see what is on screen and click things.
Structuring a macOS Agent App with Modular Swift Frameworks
Split your Swift macOS agent into separate frameworks for UI, accessibility, networking, and models. AI agents can work on one framework without breaking
Managing Multiple Codebases with Claude Code - Swift, Python, TypeScript in One Project
Building a desktop agent with separate Swift, Python, and TypeScript components. How to keep Claude aware of cross-codebase dependencies.
Building Native macOS Apps with Claude Is a Different Beast Than Web Dev
Why Claude excels at web development but struggles with native macOS and Swift - smaller training data, AppKit quirks, and the importance of detailed
Native Swift Means Your AI Agent Launches Instantly
Electron apps take seconds to start. Native Swift apps launch in under a second. For an always-on agent activated by hotkey, that speed difference matters
Building a Native Swift Voice Control App for macOS - Open Source
How we built a macOS app that transcribes voice locally with WhisperKit (0.45s latency on M1), controls any app through accessibility APIs, and keeps all audio on-device. No cloud, no audio upload, full desktop control.
Building a Production iOS App in 35 Hours with Claude Code
A real experience building a production-quality iOS app with Claude Code in 35 hours. The logic was easy - SwiftUI styling was the hardest part by far.
ScreenCaptureKit for macOS Screen Recording - Encoding Approaches and Lessons
Practical lessons from building with ScreenCaptureKit on macOS - encoding approaches, performance trade-offs, and what open source projects like Screenize
Using Claude Code Hooks for Native macOS Swift Development
How Claude Code hooks transformed native macOS Swift development. Auto-format on save, run tests before commit, validate builds - the workflow game changer.
What We Learned Building a macOS AI Agent in Swift (ScreenCaptureKit, Accessibility APIs, Async Pipelines)
Lessons from six months of building a native macOS desktop AI agent in Swift. How ScreenCaptureKit, accessibility APIs, and Swift concurrency fit together
Building a macOS Desktop Agent with Claude - How AI Wrote Most of Its Own Code
How we used Claude to build Fazm, a native macOS AI agent. ScreenCaptureKit, accessibility APIs, and Whisper - with Claude writing most of the Swift code
Why Native Swift Menu Bar Apps Are the Right UI for AI Agents
Nobody wants to switch to a separate window to talk to AI. A floating menu bar app with push-to-talk is the interaction model that actually works for