TextField In SwiftUI: A Deep Dive — Part 1

Analysis and best practices to use a TextField in SwiftUI

Alessandro Manilii
5 min readMar 16, 2022
Photo by cottonbro from Pexels

TextFields are one of those basic components that we use over and over building an iOS app. We use them so many time that often we forget everything that we could do with them. In this article I’ll try to show you everything about TextFields.

If you are interested in behavior of basic components, I may suggest you my articles about Text:

TextFields are a huge topic, so I’ve decided to split everything in two articles. In the first one I will deal with:

  • The Basic
  • Localization
  • Playing with Fonts
  • Customizing Placeholders and Borders
  • Further customization

--

--

Alessandro Manilii

I’m an Italian professional iOS Developer, iOS Tech Lead at Wakala — Join Medium from the following link: https://medium.com/@alessandromanilii/membership