Turn Your APIs into Swift Protocols
Turn Your APIs into Swift Protocols
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
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
PhoneNumberKit – a Swift take on libphonenumber
Autocompletion for Swift on Emacs
A Lisp Interpreter in Swift
Attributed strings in Swift 4
Trailer Swift
Populating a UITableView in Swift
2048 in Swift
Clojure-ish Lisp interpreter implemented in Swift
Get to grips with NSTimer in Swift
Swift Playgrounds on steroids