|
In my app I am trying to achieve an animation where the However I am noticing something super weird, as can be seen in the video, when I try to tap the textfield, the animation happens and it looses focus so the keyboard doesn't come up. This only happens the first ever time, the screen is rendered, subsequent times it works fine. As can be seen in this video I added a delay to the onEditingChanged callback to debug and it looks like the textfield first gains focus and then the animation happens and then it looses focus. Could someone explain as to why this is happening and if there is a way to fix it?
|
|
Solved this using
with the usage being something like
|
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.