A Swift macro plugin that expands Strings into ASCII Cows, right at compile time
MacroCows
400+ ASCII ?s
What is it? A Swift 5.9 compiler plugin that provides the #?
Swift macro.
It replaces the cow mentioned in the macro w/ one of the ASCII cows
provided by the Swift cows package.
Usage:
let compilerCow = #?("compiler")
print(compilerCow)
If no cow matching the string is available, Xcode will produce an error:
Requires: Xcode 15beta+.
Related
- Apps:
- CodeCows for macOS, includes a cows service and Xcode editor extension
- ASCII Cows for iOS, includes a cows message app extension
- Swift cows package
- Swift Macros:
- Intro to Swift macros
- WWDC 2023: Expand on Swift macros
- Original:
- cows – Node.js cows, the original
- vaca – Get a random ASCII cow ?
- cows-docker – ASCII cows on Docker
License
MIT © Sindre Sorhus Noze.io port: MIT © ZeeZide GmbH
Who
Macro is brought to you by ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.