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

Swift Evolution updates, 5 top community articles covering Swift development topics.

Read more from SwiftLee Weekly by Antoine van der Lee

This week's SwiftLee Weekly covers: Apple Developer meetup during WWDC Draggable bottom sheet in SwiftUI Xcode Instruments x AI Agents Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Xcode Instruments Time Profiler: Improve performance with AI I'm a big fan of Xcode Instruments, but lately even more now that I found a good way to work with it using AI agents. In this week's article, I'll share you how I used it this week to gain 25x better performance for RocketSim's CLI. SPONSORED...

This week's SwiftLee Weekly covers: Network Optimization using AI Agents Lazy properties in SwiftUI? Kids & Vibe Coding Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Network Requests Optimization using Xcode’s Simulator & Agents This feature shipped silently a few months ago and I never got to talk about it in detail: prompt exports for Network Requests. SPONSORED Give your AI agent eyes and hands on iOS FlowDeck lets Claude and Codex tap, scroll, find bugs, and fix them — on the...

This week's SwiftLee Weekly covers: SwiftUI is not accessible by default A list replacement in SwiftUI Controlling the Simulator using Agents Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST RocketSim 15: VoiceOver Navigator & Pro Simulator Recordings A year ago, an update this large would've cost me months. Now, I was able to finish this in a matter of weeks. With a brand new VoiceOver navigator, post editor for screenshots and videos, and a unique Tinted Liquid Glass accessibility...