Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Issue 111
Apr 19, 2022

The Hidden Costs of Your Dependencies.

It's the title of an article written by Jason Zurita, which perfectly aligned with this week's SwiftLee article paragraph.

Back in the days when I was working at an agency, we would add 3rd party libraries all the time. They saved us time and allowed us to build apps within the given time.

Nowadays, I'm working at WeTransfer, and we have more time to build solutions ourselves. Which we do! Though, there are many cases we still leverage the open-source community, save time, and contribute back accordingly.

Using open-sourced libraries from the community and helping make them better by contributing is a great way to progress with your apps. The main thing you need to watch out for is adding dependencies that don't fulfill your quality standards and risk becoming unmaintained.

Both me and Jason share our perspectives of 3rd party libraries, which will give you a good understanding of what it takes to determine whether a public library is worth adding.

-----

It's already week 3 of April, so it's about time to introduce you to this month's SwiftLee Giveaway!

I'm thrilled to share with you this new giveaway. A few years back, I enjoyed the best-picked beers and pizzas with Michael Flarup at SwiftHeroes in Turin, and I have followed him ever since. I was impressed by his App Icon Book and asked him for a single copy to giveaway this month! Make sure to follow his Twitter for frequent updates on the process and:

Join the giveaway here

Enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

Downloading and caching images in SwiftUI is a common task to do. AsyncImage is a popular view to use but you might need more advanced image processing solutions. In this week's article, I'm giving you insights into my process around handling images and when I would decide to reach out for a 3rd party dependency.

SPONSORED

Build real-time chat messaging in less time. Rapidly ship in-app messaging with our highly reliable chat infrastructure and feature-rich SDKs. Improve your overall in-app conversion, engagement, and retention.

SWIFTLEE JOBS

Get your job positions listed on all 190+ SwiftLee articles and 4 SwiftLee Weekly editions. Read more.
Browse Swift-related Jobs, or add your own on SwiftLee Jobs.

CURATED FROM THE COMMUNITY

SWIFT

If you’re new to SOLID, you’ll enjoy this article by Phil Yates. Thinking through your code solutions is essential to creating maintainable code, and this is one of my favorite ways of getting there.
I enjoyed this article by Martin Mitrevski, containing many tips on increasing performance in SwiftUI. I especially liked the idea of not always using @Published but instead calling objectWillChange yourself. A creative way to use in cases you’ve got more than a single published property to update.
If you’re interested into comparing Combine vs solutions from the Concurrency framework, you’ll be good with this article from Donny Wals covering several use cases in which he provides solutions in both Combine and async sequences.
I’ve read several articles around type placeholders, but this one by John Sundell made it click for me. I recognized the pain of his examples we had before Swift 5.6, and I’m now ready to start using these in my projects.
Have you ever unwrapped using a closure? Hassan Taleb did! I would never use this code in my projects, but I do get inspired by the creativity demonstrated.
I don’t do much with CloudKit (yet), but I often get questions about it. I was happy to be running into this list of official sample code from Apple, demonstrating how to use CloudKit in several scenarios.

DESIGN

Testing your designs on a single device is terrible for several reasons. You can easily forget about smaller devices or devices with dynamic types set to large. Jordan Morgan provides us a great way to catch UI issues early on in the process using SwiftUI Previews.