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: 3 Indie Marketing Tips Using Task Local values for dependencies Will WWDC have a big impact? Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Testing push notifications on the iOS simulator Many apps support push notifications, but Xcode doesn't provide an easy way to test them in the Simulator. Your options are limited, and many developers reach out to their physical device combined with some kind of testing server. Luckily, there's a native Mac...

This week's SwiftLee Weekly covers: A first look at Swift 6.2 A code deprecation coming in iOS 19 Create MCP Servers in Swift Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Swift 6.2: A first look at how it’s changing Concurrency I'm currently preparing my Deep Dish Swift conference talk and diving deep into what's next for Swift Concurrency. Since Swift is open-source, we have the opportunity to look at the latest changes that are coming up next. A few of those relate to a new...

This week's SwiftLee Weekly covers: How .ipa files can increase app security Optimizing user flows in apps Flexible SwiftUI user interfaces Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Swift Reduce: Combining elements into a single value Reduce is a typical functional pattern, a higher-order function that combines a collection into a single value cleanly and expressively. When I looked up how often I use it in RocketSim's codebase, I was quite surprised! Way more often than...