Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui textfield height

//It can be solved by using a .frame modifier, and the height argument

TextField("Random text", text: $text)
	.frame(height: CGFloat)

//This creates a frame around the textfield, and then sets the height to be a specific number of pixels
 
PREVIOUS NEXT
Tagged: #swiftui #textfield #height
ADD COMMENT
Topic
Name
1+6 =