TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Turn Your APIs into Swift Protocols

2 pointsby joshuawright11almost 2 years ago
Hey HN!<p>If you&#x27;re a fan of Swift you may have noticed that with WWDC 2023 came the (beta) release of macros. They&#x27;re super powerful and expressive!<p>I&#x27;ve been wishing Swift had a [Retrofit](<a href="https:&#x2F;&#x2F;square.github.io&#x2F;retrofit&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;square.github.io&#x2F;retrofit&#x2F;</a>) style API definition library for years, and with macros it seemed like this was now possible.<p>I&#x27;d like to show you all Papyrus, a library that turns your APIs into type-safe Swift protocols.<p>Would love to get your feedback.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;joshuawright11&#x2F;papyrus">https:&#x2F;&#x2F;github.com&#x2F;joshuawright11&#x2F;papyrus</a>

no comments

no comments