SwiftUI Weekly - Issue #99
The curated collection of links about SwiftUI. Delivered every Monday.
News
WWDC22
Join the Apple worldwide developer community for an all-online WWDC22.
Reading
Logging in Swift
We encounter bugs that are very hard to catch in the debugger from time to time. For example, it might occur only after a few days of app usage. In this case, running an app in a simulator and testing a feature doesn’t make sense. We need to understand what the user has done in the application and how it responds to user actions in this situation. Logging is an excellent technique to track and understand user actions through the app. This week we will learn how to implement proper logging functionality in our apps.
Zone sharing in CloudKit
Last week we talked about the basics of CloudKit. We learned how to save and fetch data from the storage in the cloud and how to sync the data between devices. This week I want to cover the only reason why I have chosen CloudKit instead of Firebase, and it is data sharing between users.
SwiftUI Adaptive Stack Views
How do you adapt your SwiftUI layouts for varying dynamic type size and available horizontal space?
Disable animations on a specific view in SwiftUI using transactions
Disable animations on a specific view in SwiftUI and find out how you can replace the deprecated animation(nil) modifier.
Using SF Symbols in SwiftUI
This reference article covers how to use SF Symbols in SwiftUI and the most common modifiers associated with them.
Dump SwiftUI Environment efficiently
Learn how to print environment values efficiently for debugging purposes. Dump a single value with transformEnvironment or dump all values.
Introduction to Xcode Frame Debug
Today we will check some tips about Xcode view debugging, more specifically when you are using frames. I'll not dive into what frames are or what bounds are, this is for a future article. The article will a quick one but I found it very interesting.
Video
Manage, Ignore and Add to the Safe Area in SwiftUI
In this video, we'll be looking at how to manage the SwiftUI Safe Area. We'll briefly discuss what is the safe area in SwiftUI apps, using Apple's Human Interface Guidelines. Then once we're done with that we'll jump into an Xcode project to see how to use the SwiftUI safe area by default in our SwiftUI apps and also how to ignore the safe area in SwiftUI using the .ignoresSafeArea() modifier and not the .edgesIgnoringSafeArea() modifier in SwiftUI.