From the course: Complete Guide to SwiftUI

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Forms

Forms

- [Instructor] We've used views to handle much of our input, but for some cases such as settings, a form gives a consistent look to your app. As an example, let's make a version of order detail view into a form. And I'm going to do some cleaning up here first. I'm going to go back to an iPhone and give myself some more space for my coding here. Head over here and let's find order detail view. And I'm just going to click into the text here and do a command A and A command C. And then we're going to go back over here. I'll just click on order detail view again and do another Command N. We'll use a Swift UI view that sets us up to have a Swift UI view group will be Hui Pizza Target. Change the name up here to order form view, check all my stuff here and it looks good. And then I'll hit create and then I'll click into here, do another command A and the command V gives me an invalid redecoration of order detail view, which is what we expect. And I'll change that to form. It should have…

Contents