SwiftUI Forms & TextFields Tutorial (Xcode 12, 2022, SwiftUI 2) - Swift for Beginners

preview_player
Показать описание
In this video we will learn about swiftUI textfields and forms. Forms are esseential components to collect user input and data. We will walk through adding these with state properties to get the input as well. We will be working in the latest version of swift and xcode.

#swiftUI #textfields #swift

Join this channel to get access to perks, code, groups, and more:

** Get Skillshare free for 2 Months and learn iOS

** Manage all your investments from app earnings on Betterment!

** Grow your own Youtube tech channel with TubeBuddy:
Рекомендации по теме
Комментарии
Автор

How do you “do something with form data”? I am stuck on that part

decepi
Автор

Personally, I feel that forms are a great/useful part of swiftUI, thanks for giving me a good understanding of how to use them!

jacomomanfredi
Автор

After extracting to FormViewModel, I think it should be @Published instead of @State?

julescsv
Автор

Nice simple video. If you imagine this was a contacts app, would you create perhaps a struct with all the contact properties (id, email, phone, address etc.), then create an empty array of these structs for instance - var contacts = [Contacts] in the view model. Then create a function in the view model linked to a save UI button to (check data validation) but then append all the @State vars (name, email etc.) to the array within the struct structure? These could then be sorted by id, or name etc. Is this generally the right approach for this context?

johnpill
Автор

Nicely done. Well explained. Thank you so much

bbulliard
Автор

Great video. I am definitely going to use this! Just need to learn how to save the user data to a database.

dianewarde
Автор

how can I send the input to an email by clicking on a button?

omarmehrez
Автор

I run into many errors immediately after creating a SwiftUI project. It says that it cannot find type 'View', 'Scene' and 'App' in scope. Can anyone help me?

lukasurban
Автор

How would I go about doing that in UIKit and without SwiftUI?

looatink
Автор

Great video! Thanks for this tutorial.🙏🏻

TechRagh
Автор

how to get iOS simulator to show like that on previews on the side?

demonface
Автор

Thanks for giving this great idea :)...please make a continuation of this video, after filling all the fields then shows the data to a next page....

soumitrabera
Автор

nice video, but whatsup with that ugly white backgrund behind the button, and how can I remove it? thanks!

Genvera
Автор

Great walkthrough again, Afraz. Though I have yet to be doing stuff in SwiftUI, I however got the gist. 😊

waheedafolabi
Автор

The section footer doesn't seem to work for me and text fields don't show text?

laneblack
Автор

Coming here from UIKit. This is crazy.

EvanTempleton
Автор

Great video!! Thank you for your work! 🙏🏻

aleksneso
visit shbcf.ru