Answers for "Text multiline in swiftui"

0

swiftui textfield multiline

//You can use the .multiLineTextAlignment modifier

TextField("Random text", text: $text)
	.multiLineTextAlignment(.leading)

//This aligns the text to the left
//There are more propeties besides .leading, more can be found at the source
Posted by: Guest on August-12-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language