Ch. 8.3 Using the Keyboard to Move Between TextFields in SwiftUI (Snacktacular app)

preview_player
Показать описание
We'll learn to use the iOS keyboard to navigate between TextFields in an app, or dismiss the keyboard, as the user presses the submit (a.k.a Return) key on the keyboard. We'll also learn how to perform validation as the user enters values into TextFields.
Part of a university course by Prof. John Gallaugher designed for the absolute beginner, where students will learn to program using Swift + SwiftUI. The course will move from no assumed prior programming experience while students learn fundamental, then intermediate and advanced concepts, culminating in a full stack app. Full free course playlist at:
Рекомендации по теме
Комментарии
Автор

Thank for tutorial John!
I have one question: Is it possible to avoid the bounce effect when changing the textfield?

snieves
Автор

how did u achieve the view to scroll up when the keyboard is triggered to always make the textfield visible

esraagamal
Автор

Thanks John!
Q please : how to avoid keyboard update when click next button?

felixyon
Автор

great tutorial :)
I'm using the same keyboard but the keyboard is still being dismissed onsubmit, any ideas?

tyrzong