我无法调整我创建的文本编辑器的外观。文本将有边距。\n我尝试自己做,但我搞砸了,我不能\t我希望它像图片一样。
\n\n VStack {\n TextEditor(text: $inputText)\n .background(Color.black)\n .frame(height:geometry.size.height / 3, alignment: .center)\n .cornerRadius(25)\n .border(Color.yellow, width: 5)\n .lineSpacing(10)\n .autocapitalization(.words)\n .disableAutocorrection(true)\n .padding() \n }\n\n Spacer().frame(height: geometry.size.height / 15)\n\n VStack {\n Button(action: {}, label: {\n Text("G\xc3\xb6nder")\n .frame(width: geometry.size.width / 3, height: 50)\n .padding(10)\n .font(Font.system(size: 30, weight: .medium, design: .serif))\n .foregroundColor(.white)\n .background(RoundedRectangle(cornerRadius: 30))\n .foregroundColor(.init(red: 45 / 255, green: 0 / 255, blue: 112 / 255))\n\n })\n }\nRun Code Online (Sandbox Code Playgroud)\n