Settings

Theme

Show HN: Turn Your APIs into Swift Protocols

github.com

2 points by joshuawright11 3 years ago · 0 comments · 1 min read

Reader

Hey HN!

If you're a fan of Swift you may have noticed that with WWDC 2023 came the (beta) release of macros. They're super powerful and expressive!

I've been wishing Swift had a [Retrofit](https://square.github.io/retrofit/) style API definition library for years, and with macros it seemed like this was now possible.

I'd like to show you all Papyrus, a library that turns your APIs into type-safe Swift protocols.

Would love to get your feedback.

https://github.com/joshuawright11/papyrus

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection