I've got a demo gist here of the weirdness with Swift macros not being able to see other macros, and how there's apparent inconsistency.

https://gist.github.com/rhysm94/6d8e3438696bdea998c1816b77119b7a

#swiftlang #swiftmacros #iosdev

Swift Macros can't see other macros

Swift Macros can't see other macros. GitHub Gist: instantly share code, notes, and snippets.

Gist

🚀 I just released Swift Streamable Actors v1.0!

If you’ve ever wanted to observe changes to a Swift Actor's state as an AsyncStream without writing 30 lines of boilerplate for every property, this macro is for you.

Key highlights: ✅ 100% Type-safe (no type-erasure/AnyKeyPath) ✅ Memory safe (static factories avoid strong reference cycles) ✅ Clean API: @Streamable does it all.

Check out the code: https://github.com/malhal/swift-streamable-actors

#SwiftConcurrency #SwiftMacros #OpenSource

GitHub - malhal/swift-streamable-actors: Streamable Actors for Swift

Streamable Actors for Swift. Contribute to malhal/swift-streamable-actors development by creating an account on GitHub.

GitHub

Here's a recently-published video from an event we held last year:
• Bruno Agatte: iOS Routing Architecture with UIKit & SwiftUI
• Stéphane Copin: Generate your code with Swift Macros

https://www.youtube.com/watch?v=32T1yr0WkyY

#iosdev #swift #swiftmacros

iOSoho: iOS Routing Architecture with UIKit & SwiftUI && Generate code with Swift Macros

YouTube

Daniel Steinberg @dimsumthinking is speaking at @iosdevuk . as well as the workshop on Swift Testing, Daniel is speaking about Getting the most from Swift Macros. The conference is from 2nd to 5th September. For information and tickets, see https://www.iosdevuk.com/

#iOS #Swift #SwiftMacros #iOSDevUK

iOSDevUK

Aberystwyth • 7th-10th September 2026

iOSDevUK

I made a simple experimental #swiftdata macro to learn how to use #swiftmacros, `@Queried`: https://github.com/juanarzola/Queried

This keeps an array stored property of an object always up-to-date with the contents of a `FetchDescriptor` (as long as you await the function it generates). Unlike `Query` macros, the `FetchDescriptor` isn’t an argument to the macro so that the client code of the generated function can define the arguments at the call site.

I haven't used this in any prod projects yet so consider this experimental :)

Also thanks to @pointfreeco for it's wonderful swift-macro-testing library, it made testing the macro so much easier.

#iosdev

GitHub - juanarzola/Queried: Queried SwiftData macro

Queried SwiftData macro . Contribute to juanarzola/Queried development by creating an account on GitHub.

GitHub
Expectation: Writing #swiftmacros is hard, I'll probably spend hours understanding confusing AST types
Reality: Writing #swiftmacros is hard, I sure spend 50% of the time searching for stray whitespace in macro outputs in tests 🤪
#swiftlang

SwiftCraft 2024 SESSION PREVIEW: A Mathematician Muses about Macros, @Models, and ML by @dimsumthinking

https://swiftcraft.uk/session/a-mathematician-muses-about-macros-@models-and-ml

Register now at https://swiftcraft.uk/tickets

#SwiftData #SwiftMacros #Mathematics

Swift Craft

Swift Craft

If you missed hearing from @swiftandtips at the March @iosdevhappyhour event or if you've been wanting to hear it again (and why wouldn't you?) then it's your lucky day!

Big thanks to Pitt for agreeing to share some of his knowledge about Swift Macros with us.

https://www.youtube.com/watch?v=PJiYEf8Zp18

#iOSDevHappyHour #SwiftAndTips #SwiftMacros #Swift #iOSDev

iOS Dev Happy Hour - Mar 2024 (Pitt from Swift and Tips)

YouTube

SwiftCraft 2024 SESSION PREVIEW: A Mathematician Muses about Macros, @Models, and ML by @dimsumthinking

https://swiftcraft.uk/session/a-mathematician-muses-about-macros-@models-and-ml

Register now at https://swiftcraft.uk/tickets

#SwiftData #SwiftMacros #Mathematics

Swift Craft