Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Issue 248
Dec 15, 2024

This week's SwiftLee Weekly covers:

  • Concurrency step-by-step
  • Geometry Effect in SwiftUI
  • Reducing an iOS app's size by half

Enjoy this week's SwiftLee Weekly!

Oh, p.s., I'm finally on Bluesky.

THIS WEEK'S BLOG POST

Enum explained in-depth with code examples in Swift

It's been a while since I wrote the first version of this article. Swift enums are well-known in their basics, but do you know how to use the fallthrough keyword? Or statements like guard case and if case?

Now and then, I revisit articles to bring them up to date with the latest Swift functionality. This time, you'll learn about everything you can do with enums.

SPONSORED

Tower: native Git client for Mac (30% OFF, only this week!)

Tower is a beautiful Git client designed to make Git easy (and actually enjoyable!) to use. Built for productivity, it offers complete Undo functionality, intuitive Drag and Drop, and now supports Stacked Branches! Tower seamlessly integrates with all popular code hosting platforms like GitHub, GitLab, and Bitbucket, for easy collaboration. Get your discount today.

CURATED FROM THE COMMUNITY

TextField enhancements in SwiftUI

This article briefly overviews new SwiftUI TextField APIs, like controlling the scrolling axis when text becomes too long.
swiftwithmajid.com

Why Can't You Loop Over Ranges of Characters in Swift

Have you ever wondered why you can’t handle ranges like arrays in Swift? I did, and this article finally explained the reasoning behind it.
mfaani.com

SwiftUI matched geometry effect in a custom segmented control

The Geometry Effect in SwiftUI can be tricky to grasp, especially when it comes to learning how to use it effectively. This article does an excellent job of breaking it down and includes a practical example to help you get started.
nilcoalescing.com

How I reduce the iOS TPBank app size by half

App size plays a crucial role as your app scales. While it’s not as critical as it once was, it’s still important to monitor. This article highlights the TPBank app as an example, showcasing how they tackled size growth through a mix of simple and more advanced strategies.
ericsspace.com

Concurrency Step-by-Step: Reading from Storage

Any article covering concurrency is helpful now that we’re transitioning to Swift 6. Matt does a great job explaining many different concurrency concepts, and now wrote a new step-by-step introduction article.
massicotte.org

SWIFT EVOLUTION

An overview of last week's Swift Proposal state changes. Check them out when they're in review, as it's your opportunity to influence the direction of Swift's future.

It looks like proposals are going a bit slower! No state changes this week, either.

QUESTION OF THE WEEK

When and why did you start SwiftLee and RocketSim?
Anonymous

Both SwiftLee and RocketSim are a few years old now. I started RocketSim for my own needs, but SwiftLee started a few years earlier for a whole different reason. Find out in this interview I've had with Firm24.

Want to have your question answered next week? Ask your question via this form (anonymously)

EARN ROCKETSIM LIFETIME

Share and Earn Rewards

Apple lists RocketSim as an Essential Developer Tool in the Mac App Store, and now you can enjoy lifetime Pro access by spreading the word! You can even get a private 1-on-1 session with me for career advice.

Share your unique referral link below with fellow developers who would appreciate my newsletter:

{{subscriber.rh_reflink}}

Check your referral count anytime and track your progress toward earning your reward.

A big shout-out to H. Gediya for the referrals!

Last week, H. Gediya managed to get enough referrals for a lifetime license of RocketSim. Thanks a lot for sharing the word and I hope to see you in a 1-on-1 soon!

Thanks, and until next Tuesday,

Antoine