George Yang on Nostr: Few things to remember about Swift macros: - Macros are executed in compile time, ...
Few things to remember about Swift macros:
- Macros are executed in compile time, whereas property wrappers are execute in runtime.
- Macros with hash sign are freestanding, and macros with at sign are attached to something.
- In Xcode 15, highlight a macro and right-click to select Expand Macro in the contextual menu to see the expanded form.
#Swift #iOSDev
- Macros are executed in compile time, whereas property wrappers are execute in runtime.
- Macros with hash sign are freestanding, and macros with at sign are attached to something.
- In Xcode 15, highlight a macro and right-click to select Expand Macro in the contextual menu to see the expanded form.
#Swift #iOSDev