SwiftUI: How do I make TextField fit multi-line content?
问题 In the attached code example I get a lot of extra top-spacing in my TextField. If I change the content to only be a single line, say "content", then it fits snugly. How can I get the same tight-fitting behaviour the single line has for a multi-line text? Previews and code were made with Xcode 11.1 / Swift 5.1 import SwiftUI struct TextFieldDemo: View { var content: Binding<String> init(content: Binding<String>) { self.content = content } var body: some View { TextField("Custom placeholder",