Using The .focusedValue Modifier and @FocusedBinding Property Wrapper In SwiftUI
Daily Coding Tip 041
This is a new way to pass data between Views. Instead of having an
ObservableObject, we save data using a
In the following example,
DisplayTextView is able to show the text you type into
TextFieldView, despite the fact that a
String constant is not passed between the Views.