Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

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
Comment

PREVIOUS NEXT
Code Example
Swift :: prevent iphone to sleep swift 
Swift :: How to Programatically Exit Flutter App 
Swift :: generate random bool swift 
Swift :: set color for uibutton programmatically swift 
Swift :: add top corner radius swift 
Swift :: replace character in swift 
Swift :: power number in swift 
Swift :: how do change title color in navigation bar 
Swift :: how to call app delegate function in swift 
Swift :: Thread 1: breakpoint 1.1 
Swift :: set image from asset ios swift 
Swift :: swift string to dictionary 
Swift :: Module compiled with Swift 5.3 cannot be imported by the Swift 5.3.1 compiler 
Swift :: swift 5 get current date 
Swift :: swift dictionary contains key 
Swift :: swift create custom button programmatically 
Swift :: swift pdf thumbnail 
Swift :: swift add two arrays 
Swift :: swiftui textfield focus 
Swift :: swift split string into array of 2 characters 
Swift :: swift how to set warning message 
Swift :: swiftui line break text 
Swift :: swift protocols 
Swift :: swift sf symbol uiimage size 
Swift :: Swift n Parameter with Default Values 
Swift :: command compileswift failed with a nonzero exit code 
Swift :: swift hmac256 
Swift :: how to check if not running in debufgger swift 
Swift :: Typealias for built-in types 
Swift :: How to Hide Password in Text field Swift 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =