Keyboard Avoidance for SwiftUI Views
1 min readMar 31, 2020
This is a cross-post from my blog on Advanced Swift Development. ๐ Click here to directly open this article.
Implement a SwiftUI ViewModifier that manages a keyboard when it covers a text field:
- ๐ฑ Make a view keyboard-aware.
- ๐ Take care of over-scrolling.
- ๐จโ๐ป Complete source code included.
The reason why I am not posting the full article here is that I donโt want Medium to sell my articles. I am giving all my content for free and thatโs how itโs going to stay. As a reader youโll also get better experience with code highlight and formulae.