swift-macro-examples icon indicating copy to clipboard operation
swift-macro-examples copied to clipboard

Example macros for the Swift macros effort

Results 6 swift-macro-examples issues
Sort by recently updated
recently updated
newest added

## Description - Trimming identifier of `ObservableMacro` - Fix an indetation of `CustomCodable` ### ObservableMacro ||| | --- | --- | | Before | | | After | | ###...

For example, After I move ShippingOptions inside the function, the compiler will report an error:

Hi @DougGregor I encountered this error two months ago https://github.com/apple/swift/issues/64423 I just tried the May 20 snapshot and it still happens, is this an expected behavior?

Make the `@OptionSet` macro simultaneously support *three* different forms of option set! Form #1: ```swift @OptionSet struct ShippingOptions { static var nextDay: ShippingOptions static var secondDay: ShippingOptions static var priority:...

Hi, I tried to add a macro to convert ObjC's Class (AnyClass in Swift) to the actual type. https://github.com/miku1958/swift-macro-examples/commit/e9027e4014d95d7830f3dd9af024d6e764e679b6 I've added two functions here that are implemented in ObjC, and...