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: Dealing with in-app subscription billing issues Getting started with Swift Localization using SPM Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST Swift Tutorials: Learn Swift with Easy-to-Follow Code Examples Since 2015, I've published over 250 articles. Yet, a good starting point didn't exist, and outside of search engine results, it's pretty hard to discover all the valuable content I've written. Therefore, I used this holiday week to publish an...

This week's SwiftLee Weekly covers: Noncopyable types in Swift Exploring MLX Swift Xcode Library Customization Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST SwiftUI Button: Custom Styles, Variants, and Best Practices SwiftUI provides different APIs to style buttons. You can use system styling using view modifiers or custom button styles. While writing this article, I learned about PrimitiveButtonStyle, which allows you to define both custom interactions and styling. New: Code for...

This week's SwiftLee Weekly covers: Exploring Apple Intelligence SwiftUI Design System Mutable let in Swift Enjoy this week's SwiftLee Weekly! THIS WEEK'S BLOG POST SF Symbol: How to for Swift & SwiftUI Remember the days you've had to search for a specific icon all across the web? We can be blessed with the quality of SF Symbols, which we can use for free in our apps. This week's article covers everything around the 6,000+ symbols you can use, from animations and variants to creating custom...