SwiftLee Weekly - Issue 248


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:

[RH_REFLINK GOES HERE]

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

SwiftLee Weekly by Antoine van der Lee

SwiftLee Weekly keeps you up-to-date with the latest Swift Evolution proposals, delivers 5 handpicked articles from the community, and challenges your knowledge with a weekly question. Enjoy a monthly giveaway and dive into a fresh new article from SwiftLee every week. Plus, unlock $264 worth of exclusive discounts by subscribing.

Read more from SwiftLee Weekly by Antoine van der Lee

This week's SwiftLee Weekly covers: SwiftUI Navigation Patterns Will AI replace app developers? Building crash-free apps Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST SwiftUI Lists: Present rows of data explained with code examples Many of the apps built using SwiftUI use lists in some way. You can add sections, selection, or use different list styles. This week's article shows an overview of possibilities, including one modifier you must apply to use a custom list background....

This week's SwiftLee Weekly covers: From Apple Design Award to Going Indie An Xcode feature that removed 66k lines of code What defines a Senior? Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST iOS App Development: How to get started? Many of you likely know how to build an iOS application, but perhaps you have friends who should know, yet aren’t sure where to begin. I’m frequently asked how to get started with app development, so I decided to write this article to help guide those...

This week's SwiftLee Weekly covers: SwiftLee 2024 In Review SwiftLee's Most Read Articles of 2024 What to expect from SwiftLee in 2025 Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST SwiftLee in 2024: Lessons learned and achievements Time flies when you're having fun! I truly started having fun after going indie in March of 2024: one of my significant achievements. This week's article reviews my lessons learned, achievements, and looks ahead into 2025. SPONSORED Screenshotbot: Scale...