HomeiOS DevelopmentiOS Dev Weekly - The very best iOS improvement hyperlinks, each Friday

iOS Dev Weekly – The very best iOS improvement hyperlinks, each Friday


Macros in Swift are this yr’s huge language characteristic. I’m positive you’ve already watched the wonderful Write Swift macros and Broaden on Swift macros WWDC session movies, however what comes after that?

We instantly put them in our manufacturing code and hope for one of the best, proper? 😬

I wrote one thing comparable when Swift 5.4 launched consequence builders, and we noticed a proliferation of experiments. Now we’re in that very same interval with macros.

The bundle index is already filling up with packages that comprise macros, and it makes me glad we added 5.9 assist so rapidly. A number of the packages I’m linking to under will grow to be important elements of the Swift bundle ecosystem, and a few will stay experiments. It’s unattainable to know which but!

There’s every thing from full-featured packages like SwiftRequest and papyrus that allow you to outline a type-safe HTTP consumer with operate annotations to smaller utility packages like AssociatedObject, which permits variable storage in extensions. There are various, many extra although. Right here’s an inventory of others I noticed this week:

There’s one other benefit of getting these packages accessible as open-source. They’re academic sources, too! Are you interested by the way you would possibly need to use macros in your apps? Have a look by means of the supply of a number of the packages linked above. I’m positive you’ll study one thing.



Dave Verwer  

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments