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

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

iOS Academy

3 года назад

21,208 Просмотров

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.

💻 Source Code: https://patreon.com/iOSAcademy
🎥 Subscribe for more: https://www.youtube.com/iOSAcademy?sub_confirmation=1
😎 Like my teaching style? Check out some of my most popular courses! https://courses.iosacademy.io

#swiftUI #textfields #swift

** Like my teaching style? Check out the newly launched How to Build TikTik Course: https://ios-academy.teachable.com/p/building-tiktok-for-ios

Join this channel to get access to perks, code, groups, and more:
https://www.youtube.com/channel/UCnksRRifsSCGUZpQukUKAyg/join

Join the iOS Academy Community: https://iosacademy.io/

** Get Skillshare free for 2 Months and learn iOS
https://www.skillshare.com/r/user/afraz

** Manage all your investments from app earnings on Betterment!
https://bit.ly/3eBwlI9

** Grow your own Youtube tech channel with TubeBuddy:
https://www.tubebuddy.com/iosacademy

Тэги:

#swift_5_tutorial #swift_2020 #swift #swift_5 #swift_tutorial #swift_for_beginners #swiftUI_2020 #swift_programming #swift_basics #swift_apps #make_iPhone_app #swift_make_first_app #swiftUI_tutorial #swiftui_forms #swiftui_state #swiftui_mvvm #swiftui_basics #swiftui_2 #swiftui_beginner #wiftui_textfield #swiftui_binding #swiftui_observable_object #swiftui_observable #swiftui_2.0 #swiftui_tutorial_2021 #2021_swiftui #swiftui_search_field #swiftiu_fields #swiftui #ios #app
Ссылки и html тэги не поддерживаются


Комментарии:

@Harry---7
@Harry---7 - 23.07.2023 08:06

u saved me

Ответить
@julescsv7012
@julescsv7012 - 07.07.2023 12:59

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

Ответить
@johnpill1
@johnpill1 - 20.09.2022 23:32

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?

Ответить
@EvanTempleton
@EvanTempleton - 31.03.2022 04:19

Coming here from UIKit. This is crazy.

Ответить
@bbulliard
@bbulliard - 05.02.2022 17:52

Nicely done. Well explained. Thank you so much

Ответить
@deanhansen9891
@deanhansen9891 - 01.01.2022 01:49

Very hard to follow and out of date

Ответить
@laneblack7266
@laneblack7266 - 01.12.2021 10:36

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

Ответить
@omarmehrez3363
@omarmehrez3363 - 21.11.2021 20:20

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

Ответить
@dianewarde6074
@dianewarde6074 - 24.06.2021 05:43

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

Ответить
@looatink
@looatink - 16.05.2021 17:53

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

Ответить
@Genvera
@Genvera - 27.04.2021 16:33

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

Ответить
@decepi
@decepi - 02.04.2021 10:36

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

Ответить
@demonface16
@demonface16 - 08.02.2021 04:57

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

Ответить
@lukasurban9063
@lukasurban9063 - 07.02.2021 15:43

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?

Ответить
@aleksneso634
@aleksneso634 - 19.01.2021 16:37

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

Ответить
@waheedafolabi6929
@waheedafolabi6929 - 10.01.2021 19:23

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

Ответить
@soumitrabera5444
@soumitrabera5444 - 10.01.2021 19:16

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....

Ответить
@jacomomanfredi1347
@jacomomanfredi1347 - 10.01.2021 18:19

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

Ответить
@TechRagh
@TechRagh - 10.01.2021 18:16

Great video! Thanks for this tutorial.🙏🏻

Ответить