filmov
tv
Dual Purpose Form and FocusState in SwiftUI

Показать описание
In this video, we are going to take a look at a few things, but the primary goal is to develop a method for presenting a form view that will allow us to either create a new object or update an existing object of the same type.
We will be looking at creating a form along with a FormViewModel that will help us do that along with an enum that conforms to the SwiftUI view protocol so we can use it to present the form for the correct purpose, either an update or a new object
In addition, we will also be seeing how we can use keyPaths for properties in our ViewModel so that we can control the field focus in our form.
If you want to support my work, you can buy me a coffee :)
******** Download my StewartLynch YouTube Channel Application - Free ***********
Table of Contents:
0:00 Introduction
5:42 Preview Content
8:48 FormViewModel
11:12 FormView
16:05 FormType Enum
22:16 FocusState
Starter Project Files:
Completed Project:
References mentioned in video:
Nil Coalescing Blog
Other References:
Stewart Lynch's YouTube Channel:
Stewart Lynch on Twitter:
We will be looking at creating a form along with a FormViewModel that will help us do that along with an enum that conforms to the SwiftUI view protocol so we can use it to present the form for the correct purpose, either an update or a new object
In addition, we will also be seeing how we can use keyPaths for properties in our ViewModel so that we can control the field focus in our form.
If you want to support my work, you can buy me a coffee :)
******** Download my StewartLynch YouTube Channel Application - Free ***********
Table of Contents:
0:00 Introduction
5:42 Preview Content
8:48 FormViewModel
11:12 FormView
16:05 FormType Enum
22:16 FocusState
Starter Project Files:
Completed Project:
References mentioned in video:
Nil Coalescing Blog
Other References:
Stewart Lynch's YouTube Channel:
Stewart Lynch on Twitter:
Комментарии