SwiftUI Weekly - Issue #70
The curated collection of links about SwiftUI. Delivered every Monday.
News
What's new in Xcode 13 beta 4
Button and AttributeString style updates, & more!
Reading
Confirmation dialogs in SwiftUI
SwiftUI Release 3 brings a few generic view modifiers that allow us to handle semantically similar operations for different views in the very same way. One of these view modifiers is onSubmit, which we can use to manage both forms and search fields. This week we will talk about another view modifier that SwiftUI provides us to display confirmation dialogs.
Generic error handling in SwiftUI
Often many different SwiftUI views of an app want to handle errors in the same way. This article describes a starting point for a generic error handling mechanism.
Create your custom view router with SwiftUI
The idea I had when I decided to write this short article was that I a) wanted to share some of what I learned and b) these short articles helped me a lot when learning to code.
How to show and hide a sidebar in a SwiftUI macOS app
Once the sidebar is collapsed, there is no way to get it back. Learn how to mitigate the situation.
SwiftUI Preview Orientation Tutorial
in SwiftUI the preview can be displayed with different orientations using the previewInterfaceOrientation() view modfier. In this tutorial, the preview will be displayed with the four different orientations: portrait, portraitUpsideDown, landscapeLeft, and landscapeRight.
Video
SwiftUI Data Flow playlist
In this playlist we explore SwiftUI Data Flow and how we can use it with practical examples. We'll cover how to use State, Bindings, ObservedObject, StateObject & EnvironmentObject all with practical examples.
SwiftUI Gradient Buttons
In today's video I show you how to create various gradients in SwiftUI. Specifically, the Linear Gradient, Radial Gradient and Angular Gradient. We use the very common use case of a button to showcase how to use these gradients.