#SwiftLang
AGENTS . md instructions are not always reliable, agent hooks are:

www.avanderlee.com/ai-developme...

🪝 How agent hooks work
🔀 Claude Code, Cursor, and Codex compared

#swiftlang #iosdev
November 2, 2026 at 10:37 AM
Is there a rule in your AGENTS . md that your agent regularly forgets?
A hook might be a better place for it.

www.avanderlee.com/ai-developme...

#swiftlang #iosdev
November 4, 2026 at 8:54 AM
Seeing all the Duo apps that use the hinge API creatively, makes me think there needs to be a way for full-screen apps to disable the system opening/closing blur effect to provide their own experience.

#iphoneduo #iosdev #swiftlang
November 1, 2026 at 5:38 PM
In preparation of #wowodc I've released version 0.8.0 of #swiftobjects. You still shouldn't use it for anything, but thanks to #swiftlang macros, we now have some more advanced reflection capabilities. You tag a class @\WOComponent or @\WODirectAction, and […]

[Original post on mastodon.social]
November 5, 2026 at 4:55 PM
I explored the indexing, storage, and copy-on-write design in this article.

#SwiftLang

https://ivantokar.com/posts/swift-collections-why-deque-uses-a-ring-buffer/
Swift Collections: Why Deque Uses a Ring Buffer
A source-level look at how Swift Collections implements Deque with circular storage, copy-on-write value semantics, and familiar integer indexing.
ivantokar.com
November 3, 2026 at 6:00 PM
1 Swift Evolution proposal changed status this week.

The tracker checks the official metadata daily and keeps a readable history, so you don't have to monitor every proposal manually.

swiftlee-weekly.com/swift-evolut...

#swiftlang #iosdev
October 31, 2026 at 8:13 AM
A Swift struct is a value; a class instance is shared through references. The important difference is who can change what other code sees.

Before choosing a type, ask: should this state be independent or shared?

#SwiftLang
https://www.swift.org/documentation/articles/value-and-reference-types.html
Swift.org
Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.
www.swift.org
November 3, 2026 at 2:00 PM
Swift's `for case` handles only values matching a pattern. Add `where` for one more condition, without nesting an `if` inside the loop.

The source collection stays unchanged.

#SwiftLang
https://ivantokar.com/posts/for-case-and-where-filter-while-you-iterate
for case and where: Filter While You Iterate
Use Swift for case to select matching values during iteration, bind associated data, and add precise where conditions without hiding the loop's intent.
ivantokar.com
November 3, 2026 at 1:00 PM
I just had a horrible vision of the future, where young developers who grew up with touchscreens treat keyboard and trackpad input as obscure accessibility features! 😱

#macOS #SwiftLang #DevHumor
October 30, 2026 at 3:44 PM
Navigating the Simulator using agents?
Is it accessibility tree based or using screenshots? If the latter, it can eat your context.

Learn more:

www.avanderlee.com/ai-developme...

#swiftlang #iosdev
October 30, 2026 at 8:54 AM
Swift's if case handles one enum case. guard case requires that case to continue. Neither is exhaustive: use switch when every state matters.

Molecules of Swift #007.

#SwiftLang
https://ivantokar.com/posts/if-case-and-guard-case-match-one-shape-without-a-switch/
if case and guard case: Match One Shape Without a switch
Match one Swift enum case, bind its associated values, add conditions, and decide when guard case or an exhaustive switch is clearer.
ivantokar.com
November 2, 2026 at 1:30 PM
CLI help can drift from the parser when they're maintained separately. Swift Argument Parser derives both from the same typed command definition, along with completions.

More in Swift OSS Overview #009.

#SwiftLang
https://ivantokar.com/posts/swift-argument-parser-one-model-for-cli-commands/
Swift Argument Parser: One Model for CLI Commands
A source-level look at how Swift Argument Parser turns property wrappers and command types into parsing rules, validation, usage, and help.
ivantokar.com
November 2, 2026 at 3:00 PM
Swift Algorithms' windows(ofCount:) returns overlapping slices rather than copied arrays. Two moving index bounds define each window.

My Swift OSS #014 article looks at how it works.

#SwiftLang
https://ivantokar.com/posts/swift-algorithms-sliding-windows-without-copies/
Swift Algorithms: Sliding Windows Without Copies
How swift-algorithms models overlapping collection slices with paired indexes.
ivantokar.com
November 4, 2026 at 2:00 PM
7x more output per action when using Xcode 27's MCP for Simulator navigation. Might be worth checking what your agents are using

www.avanderlee.com/ai-developme...

#swiftlang #iosdev
October 28, 2026 at 8:54 AM
SVGUIView 0.28.0 is out! 🎉 It now plays the CSS and SMIL animations of SVG documents on iOS. Set the animation mode of SVGUIView or SVGView to .play, and transforms and opacity move in layers without repainting.

github.com/nnabeyang/SV...
#swiftlang
October 27, 2026 at 11:49 AM
Xcode's MCP can burn tokens in the Simulator.

www.avanderlee.com/ai-developme...

📸 Screenshots stay in context
📊 7x more output per action

#swiftlang #iosdev
October 26, 2026 at 1:36 PM
First day back to work after @swiftleeds.co.uk Had a nice time in Leeds and Yorkshire after it. Full of inspiration and a lot of things to catch up on: app intents, store kit 2 and IAP, adding a mail subscription form, and a new update of the TimeTails UI...

#swift #swiftlang #iOSDev #buildInPublic
October 26, 2026 at 9:27 AM
AsyncChannel.finish() is not a queue drain. It wakes suspended tasks and drops pending sender values. To deliver every item, finish after all sends complete. #SwiftLang

https://ivantokar.com/posts/swift-async-algorithms-backpressure-at-the-handoff
swift-async-algorithms: Backpressure at the Handoff
How AsyncChannel makes Swift producers wait for demand, handles cancellation races, and differs from buffered streams.
ivantokar.com
October 27, 2026 at 6:00 PM
TIL: #swiftlang strings can contain 0 bytes: "mehr\0meer"
October 26, 2026 at 1:55 PM