Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Issue 124
Jul 19, 2022

Why does SwiftLee exist? How did it start?

Last week, I joined a Q&A session organized by Devpass. I've had quite a few interviews lately, and an often asked question is why I started SwiftLee and how it became what it is today.

The fun fact is: I'm using SwiftLee primarily as my knowledge base, and up until today, it's still my way of keeping myself up to date with the latest technologies.

As an engineer, it's key to stay up to date and learn about new techniques like async/await and SwiftUI. Sooner or later, you'll have to work with code touching these frameworks. For me, the best way of learning comes down to writing down my learnings in SwiftLee articles. It's a win-win that I can teach you my learnings along this journey while also building up my knowledge base.

Another reason I write is that it helps me remember stuff. You might recognize the story of creating a cheat sheet at school and ending up not using it at all since you've remembered what you wrote down on the cheatsheet. The same happens to me when writing articles!

Of course, this is just how it works for me, but I hope I've encouraged some of you to start writing more articles, even if they're small! I often link to short articles in this newsletter since I believe they can be valuable.

Lastly:

Join can still join this month's SwiftLee Giveaway and win one of the five Sourcery Pro licenses.

Good luck, and enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

By default, URLSession uses a URLSessionConfiguration with settings optimized for most common use cases. However, these settings are likely not optimized for your application, leaving room for you to maximize networking performance. The same I did last week for the WeTransfer application, for which I'm sharing my insights this week.

SPONSORED

If you’re a mid/senior iOS developer who’s looking to improve both your skills and salary level, then join this 100% free online crash course (available only until July 24th!). Click to learn more.

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

RoomAPI is one of those frameworks I’m super interested in but likely never touch. I was excited to see Russ Maschmeyer sharing this thread of his journey, proving the power of the new API.
I was not aware of this sorting technique! Nil Coalescing introduced me to KeyPathComparator and made me realize there are still many hidden gems for us to find.

DEBUGGING

I’ve not yet updated to iOS 16, but I’ll definitely check out this new developer setting once I do. Quentin Zervaas did as well and already found two easy-to-fix hangs in his app Streaks.
While I’ve linked to similar articles before, I can’t promote this technique enough. I’m using it quite often, allowing me to skip another rebuild. Marco Eidinger ‍ explains how it works.
While I’m a big fan of Reveal, I know that Xcode also comes with a View Debugger. Dominik Hauser is here to explain how it works and how you can use it to solve UI bugs.

BEST PRACTICES

Chris Wu reflects on his journey of starting his blog. I recognize the list of excuses, which I bet many of you recognize too! Though: it shouldn’t stop you from sharing your learnings. I want to point out that his section on “a lot of work” depends on a case per case. My first article took a few hours to write, but now I’m often finished in less than 2 hours. Practice and writing more often result in faster writing, but: another excuse that you should ignore from starting your blog!
I enjoyed reading this article by Scott Berrevoets, which shares his perspective on adding third-party libraries to your projects. I agree with Scott that it’s essential to ‘score’ frameworks and consider whether it’s worth adding them to your project. There are risks and concerns for you to consider before moving forward.

EDUCATIONAL

If you followed Adam Rush over the past weeks, you’d know he built up this release quite well. His VStack app is live now and allows you to learn Swift through videos recorded by himself. Worth checking out if you’re seeking to learn more about Swift development.