Once-a-year Black Friday deals are coming. Read more.
Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Issue 120
Jun 21, 2022

Diving deep into specific Swift features. It can be challenging, but dang, I learned a lot this week!

Last week, I shared all the proposals that went into Swift 5.7 and this week I started writing the first of many articles related to these new changes. I'm rehearsing my AppDevCon talk tomorrow in front of my colleagues, and I've asked them beforehand: what questions do you have about opaque types and existentials?

The main thing many seem to look for is the relationship of changes regarding Swift 5.6 vs. 5.7. Questions include when to use the some keyword, whether generics are still valuable, and how existential any relates to AnyView.

If you're visiting AppDevCon this week: I've got you covered! (make sure to say hi, I would love to meet you!).

If not, I'll make sure to continue articles like the one from this week and answer any questions you have.

In that regard: if you have any other questions related to the above, reply to this email and let me know!

Enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

I've been planning to write about opaque types for a while, but the timing was perfect when I started preparing my AppDevCon talk regarding the same topic. Many Swift 5.7 improvements impacted opaque types and changed how we work with them since Swift 5.1. Crucial details for you to know as a Swift developer.

SPONSORED

Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world. Use Emerge’s advanced app optimization and monitoring tools and start optimizing your apps.

INTERVIEW

I’ve had a chat with the Bitrise team on how we build high-rated apps at WeTransfer. The episode contains a lot of insights, including how we handle incoming bug reports and stability issues.

SWIFTLEE JOBS

(Germany)
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

Converting SwiftUI views to images has become a lot easier with the introduction of the ImageRenderer type. Daniel Saidi looked at how it works and how you can ensure outcome images don’t look blurry.
I enjoyed reading this article by Majid Jabrayilov covering the new navigation pattern in SwiftUI and how you can use it using routers and enums.
I bet many of us have been using GeometryReader to automatically switch the layout of a view based on the available size. New this year in SwiftUI is the ViewThatFits component explained in this article by Moritz Philip Recke.
I've seen regexes to find 'if let' statements, but guard statements are essential too. Aryaman Sharda got us covered!

WWDC22

I always enjoy looking at new features from a different perspective, so why not enjoy this overview of SwiftUI changes in charts?
If there’s someone that tweeted a lot of selfies this year during WWDC, it must have been Chris Wu Was Finally At Wwdc. I liked how he wrote down his WWDC journey, allowing you to get an idea of how it felt to visit this year’s in-person edition.
Xcode comes with many new features, including many making our development experience much more pleasant. Though: some features like auto-completion can lead to frustrating outcomes. Paul Hudson clearly played around with Xcode 14 before writing this article and shares his experience.
I can’t recommend enough how valuable it is to read through questions and answers from WWDC 2022 lounges. The SwiftUI Lab created another overview in which he filtered out questions that were too specific.

OPTIMIZING

A great list of tips was shared by Paul Hudson, who has been programming for over 25 years (!!), learning a lot along the way. I significantly recognize the “You need to learn how to learn effectively” part, but this article has many more great tips.

THANK YOU

Thanks for being a SwiftLee subscriber!

All my content is available to you for free. Like what I do and want to support me?
Help me reach my Sponsor goal on GitHub.