DevTechie
Published in

DevTechie

New in SwiftUI 4: Expanding TextField

Photo by Cathryn Lavery on Unsplash

TextField in SwiftUI 4 now supports multiline view, meaning it can grow as you type to make more room for the content. This is accomplished with a newly addition to existing TextField API called axis.

In this article, we will learn how to use expanding TextField inside our apps.

So starting iOS 16 and SwiftUI 4, TextField has a new parameter called axis which takes two…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store