# SwiftLee

A weekly blog about Swift, SwiftUI and Xcode Tips and Tricks

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Xcode Instruments: Profile, Fix, and Verify Performance

DevFeed: [Xcode Instruments: Profile, Fix, and Verify Performance](<https://devfeed.tech/articles/xcode-instruments-profile-fix-and-verify-performance-137194.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/debugging/xcode-instruments-time-profiler/>)

Author: Antoine van der Lee

Published: 2026-11-16T14:34:49Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [mobile-app-performance](<https://devfeed.tech/topics/mobile-app-performance.md>)

Tags: [debugging](<https://devfeed.tech/tags/debugging.md>), [instruments](<https://devfeed.tech/tags/instruments.md>), [performance](<https://devfeed.tech/tags/performance.md>), [profile](<https://devfeed.tech/tags/profile.md>), [threads](<https://devfeed.tech/tags/threads.md>), [time-profiler](<https://devfeed.tech/tags/time-profiler.md>), [verify](<https://devfeed.tech/tags/verify.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

Xcode Instruments helps locate and verify performance problems using recorded measurements. Open it with Product -> Profile (⌘+I), which builds a Release version; start with a template matching the symptom. Time Profiler reveals CPU use and costly call paths, while System Trace helps investigate hangs when the CPU is mostly idle. Record a specific flow, use Hide System Libraries and Invert Call Tree to surface costly methods, and add OSSignposter intervals to focus analysis. In Xcode 27, flame graphs and Top Functions provide alternate views of samples, and Run Comparisons measures differences between baseline and updated runs; filter both to the same interval, since new functions can appear as regressions. Simulator profiling is available, but physical devices provide more realistic results. RocketTrace locally analyzes recordings and ranks measured findings as investigation leads; its observations do not replace Run Comparisons for exact sample differences.

### Source excerpt

Xcode Instruments is a developer tool that comes for free with Xcode. It has a lot of useful tools to inspect and improve your app. Although it has a lot to offer, it's often an area which is a bit less known. In this blog post, I'll show you how I've improved the performance in ... -> The post Xcode Instruments: Profile, Fix, and Verify Performance appeared first on SwiftLee.

## Agentic engineering: why I built the AI Fundamentals course

DevFeed: [Agentic engineering: why I built the AI Fundamentals course](<https://devfeed.tech/articles/agentic-engineering-why-i-built-the-ai-fundamentals-course-122971.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/agentic-engineering-ai-fundamentals-course/>)

Author: Antoine van der Lee

Published: 2026-11-09T08:54:50Z

Content type: release

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [workflow automation](<https://devfeed.tech/topics/workflow-automation.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-coding](<https://devfeed.tech/tags/agentic-coding.md>), [agentic-engineering](<https://devfeed.tech/tags/agentic-engineering.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [ai-fundamentals](<https://devfeed.tech/tags/ai-fundamentals.md>), [automation](<https://devfeed.tech/tags/automation.md>), [code](<https://devfeed.tech/tags/code.md>), [course](<https://devfeed.tech/tags/course.md>), [software](<https://devfeed.tech/tags/software.md>)

### AI overview

Agentic engineering shifts developers from writing most code themselves to describing outcomes, reviewing agent changes, and improving the instructions and checks around agents. The author built AI Fundamentals from daily use across projects and lessons that recurred across tools, combining personal experience with official documentation. It covers planning and review, context and prompts, agent instructions, validation and safety, and scaling work across projects; practice uses a browser based sample website and requires basic development experience, but no specific tool or language. The author reports that, across 1,674 agent sessions, 94.2% of tokens were cache reads and 0.6% were agent replies, and the course teaches learners to analyze their own usage. It has nine modules and 66 lessons, released weekly after the first three; the final module and certificate are scheduled for December 22. The article says the course avoids tool specific settings and fixed prompt recipes in favor of transferable workflow judgment.

### Source excerpt

Agentic engineering changed how I build software, and today I'm launching the course I wrote about it: AI Fundamentals. I use agentic engineering and agentic coding for the same shift: you write less code yourself, and spend more time describing outcomes, reviewing changes, and improving the system around your agents. The course has been on ... -> The post Agentic engineering: why I built the AI Fundamentals course appeared first on SwiftLee.

## Agent hooks in Claude Code, Cursor, and Codex explained

DevFeed: [Agent hooks in Claude Code, Cursor, and Codex explained](<https://devfeed.tech/articles/agent-hooks-in-claude-code-cursor-and-codex-explained-113299.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/agent-hooks-claude-code-cursor-codex/>)

Author: Antoine van der Lee

Published: 2026-11-02T10:13:46Z

Content type: article

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [hooks](<https://devfeed.tech/topics/hooks.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-hooks](<https://devfeed.tech/tags/agent-hooks.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [agents](<https://devfeed.tech/tags/agents.md>), [agents-md](<https://devfeed.tech/tags/agents-md.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [automate](<https://devfeed.tech/tags/automate.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [bash](<https://devfeed.tech/tags/bash.md>), [block](<https://devfeed.tech/tags/block.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [claude-code-hooks](<https://devfeed.tech/tags/claude-code-hooks.md>), [codex](<https://devfeed.tech/tags/codex.md>), [command](<https://devfeed.tech/tags/command.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [scripts](<https://devfeed.tech/tags/scripts.md>), [shell](<https://devfeed.tech/tags/shell.md>)

### AI overview

Hooks run scripts at defined agent events, so they can enforce repeated rules more reliably than instructions in AGENTS.md, which the model may forget. A hook has an event, an optional filter, a script receiving event details as JSON on stdin, and an action; pre-action hooks can block or change a call, while post-action hooks cannot undo it. Claude Code and Codex share an event/matcher/handler configuration shape; Cursor uses a flatter hooks.json format, and tool names differ (Bash versus Shell). Codex requires review and trust for hooks, while Cursor limits project hooks to trusted workspaces. The example hook blocks unfiltered xcodebuild build/test commands and suggests piping output through xcsift; it fails open if input is unexpected or jq is missing. The article advises reading scripts before enabling them, keeping hooks fast, choosing failure behavior deliberately, and not relying on hooks as the only safeguard because some paths may skip them.

### Source excerpt

Agent hooks are small scripts that your agent tool runs automatically when something happens, like right before a shell command or when the agent finishes. Claude Code hooks, Cursor hooks, and Codex hooks all work this way, and they are the most reliable way to make sure a rule is followed every time. I use ... -> The post Agent hooks in Claude Code, Cursor, and Codex explained appeared first on SwiftLee.

## How the Xcode 27 MCP can lead to higher token costs when navigating the Simulator

DevFeed: [How the Xcode 27 MCP can lead to higher token costs when navigating the Simulator](<https://devfeed.tech/articles/how-the-xcode-27-mcp-can-lead-to-higher-token-costs-when-navigating-the-simulator-101097.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/xcode-mcp-simulator-token-costs/>)

Author: Antoine van der Lee

Published: 2026-10-26T12:09:51Z

Content type: news

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [context window](<https://devfeed.tech/topics/context-window.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [User interface design](<https://devfeed.tech/topics/ui-design.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cli](<https://devfeed.tech/tags/cli.md>), [costs](<https://devfeed.tech/tags/costs.md>), [ios](<https://devfeed.tech/tags/ios.md>), [ios-simulator](<https://devfeed.tech/tags/ios-simulator.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [screenshot](<https://devfeed.tech/tags/screenshot.md>), [simulator](<https://devfeed.tech/tags/simulator.md>), [token](<https://devfeed.tech/tags/token.md>), [token-costs](<https://devfeed.tech/tags/token-costs.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [xcode](<https://devfeed.tech/tags/xcode.md>), [xcode-27](<https://devfeed.tech/tags/xcode-27.md>)

### AI overview

In the author's scripted benchmark, Xcode 27.1 MCP's accessibility hierarchy took about seven times more input than RocketSim CLI's compact output across ten scenarios, though Xcode needed fewer calls and can build and launch the app. Xcode returns paths to a hierarchy, screenshots, thumbnails, and logs; the agent reads the hierarchy after actions, while the benchmark's screenshots were not opened. Xcode requires approval with a project open and routes interaction through a subagent. It missed a hidden accessibility element that RocketSim could activate; Face ID, two-finger touches, and accessibility audits were RocketSim-only in this benchmark. Results used one machine and fixture app, estimated tokens from bytes, and were not live model token counts. The author recommends filtering competing screenshot tools, stating the preferred tool in agent instructions, reserving screenshots for visual checks, and using clear accessibility labels.

### Source excerpt

The Xcode 27 MCP can lead to higher token costs when your agent navigates the iOS Simulator, because it reads about seven times more text after every action than RocketSim's CLI did in my benchmark. Efficient navigation comes down to what your agent reads after every tap. A screenshot shows what the screen looks like, ... -> The post How the Xcode 27 MCP can lead to higher token costs when navigating the Simulator appeared first on SwiftLee.

## SwiftUI Performance: Find Redraws in Xcode Instruments

DevFeed: [SwiftUI Performance: Find Redraws in Xcode Instruments](<https://devfeed.tech/articles/swiftui-performance-find-redraws-in-xcode-instruments-90216.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swiftui/swiftui-performance-xcode-instruments/>)

Author: Antoine van der Lee

Published: 2026-10-19T11:27:45Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [performance](<https://devfeed.tech/tags/performance.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

This tutorial explains how to use Xcode Instruments to find SwiftUI redraws, measure how often view bodies update and how long they take, and trace updates to their causes. It also describes common sources of excessive updates and how to verify changes by recording the same interaction again.

### Source excerpt

SwiftUI performance problems often come down to views that redraw too often or take too long to run their body. Before you can fix them, you need to find out which views are responsible and what triggers their updates. Xcode Instruments can show you exactly that, as long as you know where to look. In ... -> The post SwiftUI Performance: Find Redraws in Xcode Instruments appeared first on SwiftLee.

## Agentic iOS Development with RocketSim and RocketTrace

DevFeed: [Agentic iOS Development with RocketSim and RocketTrace](<https://devfeed.tech/articles/agentic-ios-development-with-rocketsim-and-rockettrace-85431.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/agentic-ios-development-rocketsim-rockettrace/>)

Author: Antoine van der Lee

Published: 2026-10-12T15:51:12Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Expo](<https://devfeed.tech/topics/expo.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [amplitude](<https://devfeed.tech/tags/amplitude.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [ios-development](<https://devfeed.tech/tags/ios-development.md>)

### AI overview

The author describes a workflow for using coding agents with RocketSim, RocketTrace, and analytics to build and verify an iOS app. Four prompts cover accessibility audits, analytics-informed onboarding, App Store screenshots, and performance analysis. In the reported example, an accessibility audit improved from 0/100 to 99/100, while a performance trace revealed hitches and stalls; the author says post-fix device verification remains to be done.

### Source excerpt

Agentic iOS development changes a lot once your coding agent can see and measure the app it's building. Without that, an agent writes code, hopes it works, and asks you to run the app. With the right tools, it navigates the app itself, reads the accessibility tree, and checks performance with evidence. I've been building ... -> The post Agentic iOS Development with RocketSim and RocketTrace appeared first on SwiftLee.

## Introducing RocketTrace: Using Xcode Instruments with AI Agents

DevFeed: [Introducing RocketTrace: Using Xcode Instruments with AI Agents](<https://devfeed.tech/articles/introducing-rockettrace-using-xcode-instruments-with-ai-agents-64724.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/introducing-rockettrace-using-xcode-instruments-with-ai-agents/>)

Author: Antoine van der Lee

Published: 2026-10-05T07:58:25Z

Content type: article

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

RocketTrace is a Mac app that analyzes Xcode Instruments recordings locally and provides ranked, evidence-backed findings for AI coding agents. The article describes its app, CLI, and Agent Skill workflows, then reports a benchmark in which agents using RocketTrace found more performance issues, used about six times fewer tokens, and finished about twice as fast. The author notes that the benchmark used one trace from one app, so it does not establish results for other apps.

### Source excerpt

I'm super excited to introduce you to RocketTrace: a Mac app that analyzes your Xcode Instruments recordings and turns them into ranked findings that your AI agent can act on. Instead of asking Claude Code, Codex, or Cursor to dig through a raw performance trace, you give it a compact summary with the evidence it ... -> The post Introducing RocketTrace: Using Xcode Instruments with AI Agents appeared first on SwiftLee.

## How to reduce token usage in Claude Code, Codex, and Cursor

DevFeed: [How to reduce token usage in Claude Code, Codex, and Cursor](<https://devfeed.tech/articles/how-to-reduce-token-usage-in-claude-code-codex-and-cursor-61218.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/reduce-token-usage-claude-code-codex-cursor/>)

Author: Antoine van der Lee

Published: 2026-09-28T12:48:10Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [codex](<https://devfeed.tech/topics/codex.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [token-usage](<https://devfeed.tech/tags/token-usage.md>)

### AI overview

The author analyzed 1,674 sessions using coding agents in Claude Code, Codex, and Cursor and found that most token usage came from agents repeatedly reading context rather than producing replies. The article describes ways to reduce that overhead by controlling what agents read, including global configuration and a hook script for Xcode projects.

### Source excerpt

You can reduce token usage in Claude Code, Codex, and Cursor by guarding what your agent reads, not what it writes. I analyzed 1,674 of my own agent sessions across RocketSim, RocketTrace, and my other Swift apps: only 0.6% of my tokens were the agent's replies. The rest was the agent re-reading the same context ... -> The post How to reduce token usage in Claude Code, Codex, and Cursor appeared first on SwiftLee.

## iPhone Duo Simulator: Testing and optimizing your SwiftUI app

DevFeed: [iPhone Duo Simulator: Testing and optimizing your SwiftUI app](<https://devfeed.tech/articles/iphone-duo-simulator-testing-and-optimizing-your-swiftui-app-58062.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swiftui/iphone-duo-simulator/>)

Author: Antoine van der Lee

Published: 2026-09-22T10:14:40Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [iphone](<https://devfeed.tech/topics/iphone.md>), [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [layout](<https://devfeed.tech/topics/layout.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [Canvas](<https://devfeed.tech/topics/canvas.md>), [ipad](<https://devfeed.tech/topics/ipad.md>)

Tags: [apps](<https://devfeed.tech/tags/apps.md>), [build](<https://devfeed.tech/tags/build.md>), [devices](<https://devfeed.tech/tags/devices.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [ios](<https://devfeed.tech/tags/ios.md>), [ipad](<https://devfeed.tech/tags/ipad.md>), [iphone](<https://devfeed.tech/tags/iphone.md>), [layout](<https://devfeed.tech/tags/layout.md>), [optimizing](<https://devfeed.tech/tags/optimizing.md>), [screen](<https://devfeed.tech/tags/screen.md>), [simulator](<https://devfeed.tech/tags/simulator.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>), [testing](<https://devfeed.tech/tags/testing.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

A tutorial on using the iPhone Duo Simulator in Xcode 27.1 to test SwiftUI apps across different hinge angles, displays, and poses. It explains how to install the simulator and build layouts that respond to available space rather than fixed device identifiers, orientations, or screen widths.

### Source excerpt

As soon as the iPhone Duo got announced, we were all waiting for an iPhone Duo Simulator inside Xcode. We eventually got it with the first beta of Xcode 27.1. This Simulator is unlike any other and a lot of fun to explore, allowing you to fold the device into different angles while watching your ... -> The post iPhone Duo Simulator: Testing and optimizing your SwiftUI app appeared first on SwiftLee.

## SwiftUI Agent Skill: Install and use with AI coding tools

DevFeed: [SwiftUI Agent Skill: Install and use with AI coding tools](<https://devfeed.tech/articles/swiftui-agent-skill-install-and-use-with-ai-coding-tools-17429.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/swiftui-agent-skill-build-better-views-with-ai/>)

Author: Antoine van der Lee

Published: 2026-09-14T11:49:33Z

Content type: article

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Code quality](<https://devfeed.tech/topics/code-quality.md>), [context window](<https://devfeed.tech/topics/context-window.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [cli](<https://devfeed.tech/tags/cli.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [context-window](<https://devfeed.tech/tags/context-window.md>), [installation](<https://devfeed.tech/tags/installation.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>)

### AI overview

This article introduces an open-source SwiftUI Agent Skill for AI coding tools. The skill helps agents build or refactor SwiftUI views, improve generated code quality, and load focused references only when they are relevant to a task. It also explains installation, updates, and compatibility considerations for the skills command-line tool.

### Source excerpt

A SwiftUI Agent Skill that helps you build better views or refactor existing ones. It's the reality we're in today, and I honestly can't live without it anymore myself. Several skills helped me improve the code quality produced by agents, and I'm happy to introduce you to my open-source skill for SwiftUI. Before reading this ... -> The post SwiftUI Agent Skill: Install and use with AI coding tools appeared first on SwiftLee.

## The iOS Simulator Inside Cursor, Claude Code, and Codex

DevFeed: [The iOS Simulator Inside Cursor, Claude Code, and Codex](<https://devfeed.tech/articles/the-ios-simulator-inside-cursor-claude-code-and-codex-11482.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/the-ios-simulator-inside-cursor-claude-code-and-codex/>)

Author: Antoine van der Lee

Published: 2026-09-07T13:07:15Z

Content type: opinion

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [iOS](<https://devfeed.tech/topics/ios.md>), [cursor](<https://devfeed.tech/topics/cursor.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [codex](<https://devfeed.tech/topics/codex.md>), [App](<https://devfeed.tech/topics/app.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [app-development](<https://devfeed.tech/tags/app-development.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [codex](<https://devfeed.tech/tags/codex.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [ios](<https://devfeed.tech/tags/ios.md>)

### AI overview

An opinion article examines how the iOS Simulator is becoming integrated into Cursor, Claude Code, and Codex as app development shifts toward orchestrating AI agents. It argues that visual testing, performance review, and critical human validation remain essential, and describes AI Agents for the iOS Simulator as a way to automate navigation and validation within the developer workflow.

### Source excerpt

App development is changing, and the iOS Simulator is too, as it starts to appear in Cursor, Claude Code, and Codex in different ways. I've been developing apps since 2009 and the RocketSim developer tool since 2019, and I can tell we're reinventing ourselves like never before. I also started to wonder: what is the ... -> The post The iOS Simulator Inside Cursor, Claude Code, and Codex appeared first on SwiftLee.

## MVVM in SwiftUI: Using view models without overengineering

DevFeed: [MVVM in SwiftUI: Using view models without overengineering](<https://devfeed.tech/articles/mvvm-in-swiftui-using-view-models-without-overengineering-11488.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swiftui/mvvm-architectural-coding-pattern-to-structure-views/>)

Author: Antoine van der Lee

Published: 2026-08-31T13:10:23Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [developers](<https://devfeed.tech/tags/developers.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>)

### AI overview

This tutorial explains how to use the MVVM architectural pattern in SwiftUI. It describes separating views from presentation state and actions through view models, while emphasizing that view models should be introduced when they provide meaningful organization or testability rather than added to every view.

### Source excerpt

MVVM in SwiftUI separates a view's presentation from the state and actions behind it. A view model exposes the values a view displays and handles work such as loading, validation, or deletion, while the view remains focused on rendering. SwiftUI already provides powerful tools for state management, so not every view needs a view model. I ... -> The post MVVM in SwiftUI: Using view models without overengineering appeared first on SwiftLee.

## @StateObject vs. @ObservedObject: The differences explained

DevFeed: [@StateObject vs. @ObservedObject: The differences explained](<https://devfeed.tech/articles/stateobject-vs-observedobject-the-differences-explained-11489.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swiftui/stateobject-observedobject-differences/>)

Author: Antoine van der Lee

Published: 2026-08-24T14:05:36Z

Content type: article

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [framework](<https://devfeed.tech/tags/framework.md>), [ios](<https://devfeed.tech/tags/ios.md>), [model](<https://devfeed.tech/tags/model.md>), [observedobject](<https://devfeed.tech/tags/observedobject.md>), [propertywrapper](<https://devfeed.tech/tags/propertywrapper.md>), [published](<https://devfeed.tech/tags/published.md>), [rebuilds](<https://devfeed.tech/tags/rebuilds.md>), [stateobject](<https://devfeed.tech/tags/stateobject.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>)

### AI overview

This article explains the difference between SwiftUI's @StateObject and @ObservedObject property wrappers. Use @StateObject when a view creates and owns an ObservableObject, and use @ObservedObject when the object is supplied by another view. It also explains how inline object creation can reset view models, contrasts these wrappers with the ObservableObject protocol, and recommends the Observation framework for new code targeting iOS 17 and later.

### Source excerpt

@StateObject and @ObservedObject both connect an ObservableObject to a SwiftUI view. The key difference is ownership: use @StateObject when the view creates the object and @ObservedObject when the view receives it from elsewhere. Choosing the wrong wrapper can cause your model to be recreated whenever SwiftUI rebuilds a view. I made this mistake myself because both wrappers initially appeared to produce the same result. ... -> The post @StateObject vs. @ObservedObject: The differences explained appeared first on SwiftLee.

## Swift Testing explained with code examples

DevFeed: [Swift Testing explained with code examples](<https://devfeed.tech/articles/swift-testing-explained-with-code-examples-11484.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swift-testing/modern-unit-test/>)

Author: Antoine van der Lee

Published: 2026-08-17T08:51:15Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [examples](<https://devfeed.tech/tags/examples.md>), [net-conf](<https://devfeed.tech/tags/net-conf.md>), [swift](<https://devfeed.tech/tags/swift.md>), [swift-testing](<https://devfeed.tech/tags/swift-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

This tutorial introduces Swift Testing, the modern Swift testing framework built around expressive macros such as @Test, #expect, and #require. It explains how Swift Testing replaces XCTest, reduces repetitive boilerplate, defines tests globally, and organizes them with structs, traits, and tags.

### Source excerpt

Swift Testing is the modern framework for writing tests in Swift, built around expressive macros like @Test, #expect, and #require. It's the successor to XCTest and the default testing framework for new projects in Xcode. Instead of dozens of assertion methods, you work with a single expressive macro that tells you exactly why a test ... -> The post Swift Testing explained with code examples appeared first on SwiftLee.

## Sendable and @Sendable closures explained with code examples

DevFeed: [Sendable and @Sendable closures explained with code examples](<https://devfeed.tech/articles/sendable-and-sendable-closures-explained-with-code-examples-11487.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swift/sendable-protocol-closures/>)

Author: Antoine van der Lee

Published: 2026-08-09T11:53:15Z

Content type: article

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Code](<https://devfeed.tech/topics/code.md>), [async/await](<https://devfeed.tech/topics/async-await.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [examples](<https://devfeed.tech/tags/examples.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

This article explains Swift's Sendable protocol and the @Sendable closure attribute. It describes how the compiler checks whether values can safely cross concurrency domains such as actors, tasks, and threads, including examples involving value types, classes, generics, and enums with associated values.

### Source excerpt

Sendable is a protocol in Swift that indicates a type is safe to share across concurrency domains like actors, tasks, and threads. When a type conforms to Sendable, the compiler verifies at compile time that passing it around can't introduce data races. Together with the @Sendable attribute for closures, it's one of the core building ... -> The post Sendable and @Sendable closures explained with code examples appeared first on SwiftLee.

## @MainActor in Swift explained with code examples

DevFeed: [@MainActor in Swift explained with code examples](<https://devfeed.tech/articles/mainactor-in-swift-explained-with-code-examples-11486.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swift/mainactor-dispatch-main-thread/>)

Author: Antoine van der Lee

Published: 2026-08-02T12:04:47Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Code](<https://devfeed.tech/topics/code.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [code](<https://devfeed.tech/tags/code.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [dispatchqueue](<https://devfeed.tech/tags/dispatchqueue.md>), [examples](<https://devfeed.tech/tags/examples.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [main-thread](<https://devfeed.tech/tags/main-thread.md>), [swift](<https://devfeed.tech/tags/swift.md>), [thread](<https://devfeed.tech/tags/thread.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

This tutorial explains how Swift's @MainActor global actor ensures that properties, methods, instances, and closures execute on the main thread. It also covers compiler-enforced main-thread execution, global actor isolation, nonisolated methods, and changes to default actor isolation in Swift 6.2 and Xcode 26.

### Source excerpt

@MainActor is a global actor that performs its tasks on the main thread. You can use it to dispatch to the main thread by marking properties, methods, instances, or closures with the attribute. Instead of manually dispatching using DispatchQueue.main.async, you let the compiler enforce main thread execution for you. If you're new to Actors in ... -> The post @MainActor in Swift explained with code examples appeared first on SwiftLee.

## How to free up Xcode disk space safely with an AI Agent

DevFeed: [How to free up Xcode disk space safely with an AI Agent](<https://devfeed.tech/articles/how-to-free-up-xcode-disk-space-safely-with-an-ai-agent-11481.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/ai-development/how-to-free-up-xcode-disk-space-safely-with-an-ai-agent/>)

Author: Antoine van der Lee

Published: 2026-07-27T08:34:16Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Xcode](<https://devfeed.tech/topics/xcode.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Agent Skills](<https://devfeed.tech/topics/agent-skills.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-development](<https://devfeed.tech/tags/ai-development.md>), [derived-data](<https://devfeed.tech/tags/derived-data.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [disk-space](<https://devfeed.tech/tags/disk-space.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [workflow](<https://devfeed.tech/tags/workflow.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

This tutorial explains why Xcode can consume substantial disk space, especially when multiple AI agents use separate Git worktrees. It introduces an open-source Xcode Disk Cleanup Agent Skill that searches common storage locations and requires explicit approval before deleting anything.

### Source excerpt

Xcode disk space can grow rapidly without you noticing. Especially these days, with multiple agents turning multiple worktrees into silent disk space occupiers. Where I used to only focus on deleting old Simulators every now and then, I'm now also actively managing worktrees and derived data folders. There are great Mac apps and open-source projects ... -> The post How to free up Xcode disk space safely with an AI Agent appeared first on SwiftLee.

## How to Test iOS Apps in Different Time Zones on a Physical iPhone

DevFeed: [How to Test iOS Apps in Different Time Zones on a Physical iPhone](<https://devfeed.tech/articles/how-to-test-ios-apps-in-different-time-zones-on-a-physical-iphone-11490.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/xcode/ios-time-zone-testing-physical-iphone/>)

Author: Antoine van der Lee

Published: 2026-07-20T12:27:42Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [iOS](<https://devfeed.tech/topics/ios.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [USB](<https://devfeed.tech/topics/usb.md>)

Tags: [how-to](<https://devfeed.tech/tags/how-to.md>), [ios](<https://devfeed.tech/tags/ios.md>), [iphone](<https://devfeed.tech/tags/iphone.md>), [simulator](<https://devfeed.tech/tags/simulator.md>), [testing](<https://devfeed.tech/tags/testing.md>), [usb](<https://devfeed.tech/tags/usb.md>), [validation](<https://devfeed.tech/tags/validation.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

This tutorial explains how to test iOS apps across time zones on a physical iPhone or iPad using RocketSim, Xcode 27, and a USB connection. Simulating a location lets iOS update the device's system time zone, enabling validation of behaviors such as local time changes, focus modes, and driving mode. The workflow requires specific device settings, Developer Mode, and an app launched from Xcode; Xcode 27 is identified as being in beta in the supplied text.

### Source excerpt

Testing iOS Time Zones is a typical validation path that's difficult without actually traveling yourself. You can apply all kinds of protocols and mock versions of your app, but having iOS act like it's actually traveling between time zones is a real challenge. Ideally, you'd test apps like travel apps in such a way that ... -> The post How to Test iOS Apps in Different Time Zones on a Physical iPhone appeared first on SwiftLee.

## User Diagnostics Reports: Solving app bugs faster with AI Agents

DevFeed: [User Diagnostics Reports: Solving app bugs faster with AI Agents](<https://devfeed.tech/articles/user-diagnostics-reports-solving-app-bugs-faster-with-ai-agents-11483.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/debugging/introducing-diagnostics-improved-debugging-and-user-support/>)

Author: Antoine van der Lee

Published: 2026-07-13T07:21:09Z

Content type: article

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [App](<https://devfeed.tech/topics/app.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Xcode](<https://devfeed.tech/topics/xcode.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [html](<https://devfeed.tech/tags/html.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

### AI overview

The article introduces Diagnostics, an open source library for app support and bug investigation. It generates a detailed HTML diagnostics report containing app and OS versions, device and storage details, session information, and system or debug logs. The report can be attached when users submit feedback, reducing back-and-forth and helping developers analyze issues; the article also notes support for agentic development.

### Source excerpt

A user diagnostics report that helps you solve bugs and improve user support at the same time. I've been writing apps since 2009, and the Diagnostics repository is an outcome of all that experience. Used by major apps from companies like WeTransfer, it has proven its value time after time. I've seen consistent inefficiency at ... -> The post User Diagnostics Reports: Solving app bugs faster with AI Agents appeared first on SwiftLee.

## Defer in Swift explained with Code Examples

DevFeed: [Defer in Swift explained with Code Examples](<https://devfeed.tech/articles/defer-in-swift-explained-with-code-examples-11485.md>)

Original publisher: [Read original article](<https://www.avanderlee.com/swift/defer-usage-swift/>)

Author: Antoine van der Lee

Published: 2026-07-06T12:51:59Z

Content type: tutorial

Language: en

Sources: [SwiftLee](<https://devfeed.tech/sources/swiftlee.md>)

Topics: [Swift](<https://devfeed.tech/topics/swift.md>), [Code](<https://devfeed.tech/topics/code.md>), [async/await](<https://devfeed.tech/topics/async-await.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [defer](<https://devfeed.tech/tags/defer.md>), [examples](<https://devfeed.tech/tags/examples.md>), [leaving](<https://devfeed.tech/tags/leaving.md>), [scope](<https://devfeed.tech/tags/scope.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

This tutorial explains Swift's defer statement, which runs code when control leaves its scope. It covers reverse execution order for multiple defer statements, using defer for resource cleanup, and Swift 6.4 support for awaiting asynchronous cleanup in defer bodies.

### Source excerpt

Although the defer keyword was already introduced in Swift 2.0, it's still quite uncommon to use it in projects. Its usage can be hard to understand, but using it can improve your code a lot in some places. The most common use case seen around is opening and closing a context within a scope. Starting ... -> The post Defer in Swift explained with Code Examples appeared first on SwiftLee.