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

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: ControlGroup in SwiftUI 1-on-1 with an app development expert My favorite books Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST How to develop an app for iOS Many of you probably know how to build an app for iOS, but many developers (or non-developers) out there don't! I decided to write an entry article to give those a kickstart. Book a 1-on-1 for app development questions As part of this, I'm happy to announce I joined Intro as an app development...

This week's SwiftLee Weekly covers: Can you land an iOS job within 1 year? Winning an Apple Design Award Open-sourcing Swift Build Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Parameterized tests in Swift: Reducing boilerplate code Are you using Swift Testing already? If not, you might start doing so after trying out parameterized tests. They're quite a game changer for my tests and a great way to reuse a single test case. SPONSORED FREE iOS Architect Crash Course for a limited...

This week's SwiftLee Weekly covers: Debugging the undebuggable Color mixing in SwiftUI Indie app launch learnings Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Network Link Conditioner: Simulating Slow Networking The Network Link Conditioner is part of Apple's additional Xcode tools and allows you to test your app under slow networking conditions. If you're testing your iOS apps for slow networking, there's a better alternative. SPONSORED Paywalls Made Easy – Superwall Huge apps...