Swift Animation: Login Form Field - Adding the textfield (Ep.3)

preview_player
Показать описание
In episode #3 we add a text field and cancel button to our login form.

All episodes in series:

Source code

Book

Twitter
@jrasmusson

Courses

Level Up AutoLayout

Level Up in Swift
Рекомендации по теме
Комментарии
Автор

Hi Jonathan, I think the reason the animation didn't work when you clicked on the custom view was that the textfield was on the top layer of the custom view. So, the textfield captured the touch event instead of letting the custom view do it itself. If we touch the outside of the text field the animation would still work.

atreides
Автор

Nice video. question, when would you use .primaryActionTriggered vs. .touchUpInside?

jong