SwiftLee Weekly - Issue 269


This week's SwiftLee Weekly covers:

  • On-Device AI Models
  • A single line that bricks your iPhone
  • What happens if you don't know the answer?

Enjoy this week's SwiftLee Weekly!

THIS WEEK'S BLOG POST

SwiftUI ForEach Explained with Code Examples

ForEach in SwiftUI is an essential element that we all use, but it can sometimes be confusing. The use of the Identifiable protocol is key, and an enumerated approach can help you make index-based adjustments for the presented content.

SPONSORED

What's the cost of not prioritizing mobile release management?

Join mobile leaders from Skyscanner and SoFi on May 22 to find out just how much your outdated mobile release processes are actually costing you—and learn the ROI of updating how you work and ship. Register for the live discussion.

CURATED FROM THE COMMUNITY

How On-Device AI Models Find Your Best Tinder Profile Photos

I had the opportunity to talk with Thomas personally about this feature, he demonstrated it, and I was blown away. Amazing feature and this article provides you a peek behind it!
medium.com

Fitting the Lapse experience into 15 MegaBytes

How do you reduce your app clip’s size to less than 15MB? Several steps and techniques can do this, and you’ll learn them in this article.
blog.jacobstechtavern.com

Unlocking the Real Power of Swift 6's Typed Throws with Error Chains

An interesting approach towards using typed throws to keep the returned error type consistent, even if another type of error gets thrown!
fline.dev

How a Single Line Of Code Could Brick Your iPhone

Guilherme Rambo reveals a critical iOS vulnerability where a single line of code using the Darwin notification API could trigger a fake “Restore in Progress” state. These articles always blow my mind.
rambo.codes

Drawing symbols with Canvas

The Canvas SwiftUI element lets you draw dynamic graphics efficiently in SwiftUI by using a GraphicsContext, giving you more control and better performance than stacking multiple views. Fun to play around with, but also essential to know it exists!
createwithswift.com

CODE SNIPPET OF THE WEEK

Loops with Labels

You can find this post on Twitter/X, LinkedIn, or Bluesky.

QUESTION OF THE WEEK

What happens if you get a question asked after a talk and you don't know the answer?

An interesting thing happened yesterday at my Deep Dish talk. I got a question and I didn't know the answer—yes, I don't know everything! I'm joking here, but somehow, people didn't expect me to say "I don't know".

There was even someone that found it the highlight of the Q&A. It shows that even those that write an article every week, that seem to be very knowledgeable, still don't know everything.

You might read this and think, of course that's how it is. But still, I believe it's important to emphasize this and that's also why I didn't doubt to say "I don't know" on stage. We're all learning, we're all developers, and you can't simply know it all.

Want to have your question answered next week? Ask your question via this form (anonymously) or reply to this email with your question.

EARN ROCKETSIM LIFETIME

Share and Earn RocketSim Lifetime & a 1-on-1 coaching session

Apple has recognized RocketSim as an Essential Developer Tool in the Mac App Store, and now you can get lifetime Pro access by sharing your unique referral link!

How to get started:

[RH_REFLINK GOES HERE]

Rewards:

  • Earn your first reward after just 3 sign-ups!
  • Check your progress anytime using your referral dashboard.
  • The grand prize? A personalized 1-on-1 career coaching session!

Several subscribers have already claimed their rewards—will you be next?

Thank you so much for your support, and until next Tuesday,

Antoine

SwiftLee Weekly by Antoine van der Lee

A new SwiftLee article, code snippet, Swift Evolution updates, 5 top community articles, and a weekly answer to a question from the community to level up your Swift skills.

Read more from SwiftLee Weekly by Antoine van der Lee

This week's SwiftLee Weekly covers: Notable WWDC changes Automatic observation tracking for UIKit What is it like to visit WWDC? Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST @concurrent explained with code examples One of my favorite announcements of this week is all the concurrency changes. One of the new attributes you'll need in Swift 6.2 is the @concurrent attribute, which I'll explain in this week's article. SPONSORED Capture, Debug, and Optimize Your HTTP(s) Traffic in One...

This week's SwiftLee Weekly covers: Microapps architecture Private APIs for hidden UIKit views SwiftUI tracing using Macros Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Unique values in Swift: Removing duplicates from an array Removing duplicates from an array can quickly become a performance challenge when your array has thousands of items. In this week's article, we discuss performant options to efficiently get unique values, including an extension to filter by a specific...

This week's SwiftLee Weekly covers: Build apps without Xcode or xcodebuild Camera support for Xcode's Simulator An App Store Connect feature you need to enable Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Billing Grace Period Explained: How It Works and Why It Matters During a workshop with Apple last week, I discovered several optimizations for my apps. One of them is a feature that's disabled by default, but that can reduce churn and retain more revenue: Billing Grace Period....