Swift

32 articles about swift.

ScreenCaptureKit: Complete Swift API Guide for macOS

·15 min read

Comprehensive guide to Apple's ScreenCaptureKit framework - covers SCStream, SCShareableContent, SCContentFilter, audio capture, permissions, and performance on macOS 12.3+.

screencapturekitswiftmacosscreen-capturescstream

ScreenCaptureKit Demo App: Build a Working Screen Capture Tool on macOS

·14 min read

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.

screencapturekitmacosswiftscreen-capturedemo-app

Actor-Based Sync Engines and Modular Frameworks for Native macOS Apps

·2 min read

Why actor-based sync engines with modular Swift frameworks produce the cleanest macOS app architecture. Lessons from real native apps using Swift 6 concurrency.

swiftmacosarchitectureconcurrencynative-apps

Converting a Website to a Native App with AI Agents

·2 min read

AI agents can automate the migration from web to React Native or Swift. What works, what breaks, and where human judgment is still required.

native-appweb-to-appreact-nativeswiftmigrationchatgptcoding

Debugging MCP Servers with File Logging and Stdio Workarounds

·5 min read

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.

mcpdebuggingswiftstdiodeveloper-tools

Managing Internal Swift Packages Across macOS Projects - Symlinks and Local Dependencies

·2 min read

When internal Swift packages are shared across several macOS projects, symlinking the packages into each project works better than versioned registries for

swiftmacospackagesspminternal-libraries

Building a macOS AI Agent with Accessibility APIs and ScreenCaptureKit

·2 min read

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

macosaccessibility-apiscreencapturekitdesktop-agentswiftnative

Modular Architecture for Native macOS Apps: Frameworks, Actors, and File Provider

·7 min read

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.

macosswiftarchitecturemodularfile-providersyncopensource

The Most Important AI Coding Rule - Remove Verbosity and Blathering

·2 min read

When writing Swift and macOS code with AI, the 'remove verbosity and blathering' instruction does the most important work. Concise prompts produce better code.

ai-codingswiftmacospromptingdeveloper-toolsverbosity

Why Swift Is the Right Choice for MCP Servers That Need macOS System APIs

·2 min read

Rust produces tiny binaries and fast startup for MCP servers, but when you need deep integration with macOS accessibility APIs, CGEvents, and other system

mcpswiftrustmacosaccessibility-apisystem-apismcpservers

SwiftUI on macOS 14+ Finally Works - NavigationSplitView and Beyond

·2 min read

macOS 14 is where SwiftUI clicked for desktop apps. NavigationSplitView works properly, performance is solid, and building native macOS apps with SwiftUI is

swiftuimacosnavigationswiftdesktop-app

Actor Reentrancy in Swift - Why Actors Alone Do Not Prevent State Corruption

·5 min read

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.

swiftmacosactorsconcurrencystate-management

Why Building a Native macOS App Burns Through AI Tokens So Fast

·2 min read

Parallel agents, Swift compiler strictness, and accessibility tree parsing all contribute to massive token consumption when building native desktop apps

token-usageparallel-agentsmacosswiftswiftuiaccessibility-treeclaudecode

Using Agent Teams as a Product Backend: Bridging Swift Desktop Apps to Claude Agent SDK

·2 min read

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.

swiftclaude-sdkarchitecturemacosagent-teams

Best Practices for Shipping iOS and macOS Apps with Claude Code

·3 min read

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

iosmacosclaude-codeswiftbest-practicesshippingapp-development

Building a Desktop App 100% with Claude AI

·2 min read

What you learn the hard way building a native desktop email client entirely with Claude. Swift, Rust, and the real challenges no tutorial covers.

claudedesktop-appswiftrustai-codinglessons-learned

Claude Code for Swift/macOS Development - ScreenCaptureKit and Deprecated APIs

·2 min read

Using Claude Code for Swift and macOS development with ScreenCaptureKit, navigating deprecated API struggles, and why CLAUDE.md is the single biggest

claude-codeswiftmacosscreencapturekitclaude-mddeprecated-apiswebdev

Claude Code vs Copilot: The Parallel Agents Advantage for Multi-Language Codebases

·2 min read

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.

claude-codecopilotparallel-agentsswiftrustfluttermulti-language

Codex vs Claude Code for macOS Desktop Development

·2 min read

Why Claude Code wins over OpenAI Codex for native macOS app development - from SwiftUI debugging to Xcode integration and local-first workflows.

codexclaude-codemacosswiftdesktop-development

Building a Desktop App to Orchestrate 5 Claude Agents in Parallel

·3 min read

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.

swiftdesktop-appclaude-codeparallel-agentsorchestrationmacos

Building an MCP Server That Combines macOS Accessibility APIs With Screen Capture

·2 min read

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.

mcpaccessibility-apiscreen-capturemacosswift

Structuring a macOS Agent App with Modular Swift Frameworks

·2 min read

Split your Swift macOS agent into separate frameworks for UI, accessibility, networking, and models. AI agents can work on one framework without breaking

swiftmodularframeworkmacosarchitecture

Managing Multiple Codebases with Claude Code - Swift, Python, TypeScript in One Project

·2 min read

Building a desktop agent with separate Swift, Python, and TypeScript components. How to keep Claude aware of cross-codebase dependencies.

multi-codebaseclaude-codeswiftpythontypescript

Building Native macOS Apps with Claude Is a Different Beast Than Web Dev

·3 min read

Why Claude excels at web development but struggles with native macOS and Swift - smaller training data, AppKit quirks, and the importance of detailed

macosswiftclaudenative-developmentappkit

Native Swift Means Your AI Agent Launches Instantly

·2 min read

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

swiftnativeperformancelaunch-speedelectron

Building a Native Swift Voice Control App for macOS - Open Source

·6 min read

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.

swiftvoice-appmacosopen-sourcewhisperkit

Building a Production iOS App in 35 Hours with Claude Code

·3 min read

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.

claude-codeiosswiftuiswiftapp-developmentproductionstyling

ScreenCaptureKit for macOS Screen Recording - Encoding Approaches and Lessons

·3 min read

Practical lessons from building with ScreenCaptureKit on macOS - encoding approaches, performance trade-offs, and what open source projects like Screenize

screencapturekitmacosscreen-recordingswiftencodingvideo

Using Claude Code Hooks for Native macOS Swift Development

·3 min read

How Claude Code hooks transformed native macOS Swift development. Auto-format on save, run tests before commit, validate builds - the workflow game changer.

claude-codehooksswiftmacosdevelopmentworkflow

What We Learned Building a macOS AI Agent in Swift (ScreenCaptureKit, Accessibility APIs, Async Pipelines)

·5 min read

Lessons from six months of building a native macOS desktop AI agent in Swift. How ScreenCaptureKit, accessibility APIs, and Swift concurrency fit together

swiftscreencapturekitaccessibility-apiengineeringmacos

Building a macOS Desktop Agent with Claude - How AI Wrote Most of Its Own Code

·4 min read

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

claudeai-codingswiftmacosdeveloper-tools

Why Native Swift Menu Bar Apps Are the Right UI for AI Agents

·3 min read

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

swiftmacosui-designmenu-bardesktop-agent

Browse by Topic