SwiftUI Weekly - Issue #82
The curated collection of links about SwiftUI. Delivered every Monday.
News
Submissions now accepted through the holidays
This year, we’re pleased to continue accepting submissions in App Store Connect throughout the upcoming holidays. Make sure your apps are up to date and ready for the busiest season on the App Store. Due to anticipated high volume, plan to send time-sensitive submissions early. Please note that reviews may take longer to complete from November 24 to 28 and December 23 to 27.
Reading
Managing safe area in SwiftUI
A safe area defines the area within a view that isn’t covered by a navigation bar, tab bar, toolbar, or other views. SwiftUI views respect safe areas out of the box. But there are plenty of situations when you need to customize this behavior. This week we will learn how to manage the safe area in SwiftUI.
Understanding how and when SwiftUI decides to redraw views
There's a good chance that you're using SwiftUI and that you're not quite sure how and when SwiftUI determines which views should redraw. And arguably, that's a good thing. SwiftUI is clearly smart enough to make decent decisions without any negative consequences.
The Redacted View Modifier in SwiftUI
Read about the redacted view modifier in SwiftUI and how to show placeholders while fetching data or displaying sensitive information.
Currency TextField in SwiftUI
Between banking and crypto apps, it’s quite often we interact with currency inputs on daily basis. If creating a localized UITextField can already be tricky in UIKit, I was wondering how hard it would be to do a similar one in SwiftUI. Let’s see today how to create a localized currency TextField in SwiftUI.
Custom SwiftUI Environment Values Cheatsheet
A collection of the most common custom types we might define into the environment.
Using Swift’s concurrency system to run multiple tasks in parallel
Let’s take a look at a few different ways to run multiple tasks in parallel when using Swift’s built-in concurrency system, and when each of those techniques can be especially useful.
Code
CypherPoet/SwiftUIReduxUtils
A collection utilities for architecting SwiftUI apps in the Redux/Elm style of Reducers, Actions, Side Effects and Middlewares.
Video
How to lay out views in a scrolling grid
In this project we build a multi-screen user interface for letting users explore the history of the Apollo space program.
Why @State only works with structs
In this technique project we build an expense tracking app with two views, ObservableObject, Codable, and UserDefaults.