This is the final sample project of the post Using SwiftUI in Command Line Tools, at SwiftToolkit.dev.
The example app icon used in this project is from the NetNewsWire app.
To use this tool, first clone this project. Then, in the root directory, use SPM to build and run the executable:
swift run badgeify --input icon.png --output badged.png --text "Some Text"
Where instead of icon.png
you can use any path.
For more details, check the full post.