SwiftUI Form w/ TextField, DatePicker, Toggle, Stepper, Link and Sections w/ Header

preview_player
Показать описание

In today's video I show you how to create a Form in SwiftUI. We'll build a SwiftUI View that resembles a typical account screen that you would find in an app. I populate the Form with common elements you may use like TextFields, DatePicker, Toggle, Stepper, and a Link. I also show you how to break the form into sections with section headers and way to handle some keyboard issues you may have with your Form.

This tutorial was created in Xcode 12.5 and Swift 5.4.

SF Symbols Video:

If you like my teaching or presentation style, I've started creating my own courses:

Twitter:

Link to my book - How I Became an iOS Developer:

Check out my podcast, iOS Dev Discussions:

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Ray Wenderlich Books:

Ray Wenderlich Videos:

Paul Hudson's Hacking With Swift:

Learn Advanced Swift Here:

Links to my iOS Dev Setup & iOS Dev Book Recommendations

#swift #softwaredeveloper #iosdeveloper
Рекомендации по теме
Комментарии
Автор

If you enjoy my teaching/presentation style, I started creating my own iOS development courses at seanallen.teachable.com. You can watch the first ~10% as a free preview to get a feel for them.

seanallen
Автор

SwiftUI becomes even easier after Sean's explanation...
Thank you Sean!

obtusei
Автор

This is a great demo of where SwiftUI shines vs UIKit. Thanks Sean.

glennadams
Автор

Thank you Sean for all the tutorials, I don't have a Macbook yet but, I will use mac in cloud, I can't wait to play with swiftUI🚀🚀

shedrackejeh
Автор

The master of IOS is you, Sean. Can’t believe I’m doing my first app thanks to you. Cheers from Argentina, my friend!

martinmaulhardt
Автор

Man Very easy to learn.. I am doing the screen while watching your videos. Thanks alot..

manoz
Автор

this is really great, keep up the great work Sean Allen

kibugenzaking
Автор

Hey Sean, would love to see a SpriteKit series on youtube or a new course about it. Many of us would like to dive into iOS game development and all the tutorials out there are 3-5 years old. Also great video!

LaurIle
Автор

Nice video. A tip for automatically creating closures: you can just hit enter and Xcode should automatically create the closure. E.g. when creating a Button(LocalizedStringKey, () -> Void), when you click enter on () -> Void it will create the closure.

fadyyecob
Автор

Thanks for the demo, can add this to my project now. 👍🏻

karhoshe
Автор

Nice video. Thing starts becoming tricky when we must deal with entering numbers in TextField. Could be great to have a lesson on this.

fredrigaudeau
Автор

why I don't see the file info.plist on my project . You are a great teacher. Thank you!

michelcusson
Автор

Sean great video! So.. if less is more... how might you refactor this so the keyboard dismiss button only appears in the toolbar when the keyboard is actually displayed.

danzeitman
Автор

Super helpful and informative!! Thank you!!

ClintonSiegel
Автор

Very clear and helpful. Thanks, Sean.

williamallen
Автор

Hey Sean, It would be great if u made a part2 video to show how to validate TextField inside a form so it shows if the content is valid like if it is a valid email or valid number of characters

esraagamal
Автор

Thank You i learned a lots of new things

radfaredu
Автор

Great video! Just wondered if you were doing this with a firebase database, how would you save the details entered into the form? Thank you!

jwoodywoodward
Автор

is there a way to save the data even after the application is closed

nsmofficial_
Автор

Very good content. Thank you for your efforts.

rudrakshya