skip to Main Content

Ios swift – How to change the background color of TextEditor like TextFeild

struct TextView: View { @State private var textInput2: String = "" var body: some View { ScrollView{ VStack(spacing: 24){ TextField("", text: $textInput2) .font(.body) .foregroundColor(.gray) .padding() .frame(height: 142) .background(Color("3")) .cornerRadius(20) .overlay( RoundedRectangle(cornerRadius: 20) .stroke(Color.gray.opacity(0.5), lineWidth: 2) ) TextEditor(text: $textInput2) .textFieldStyle(PlainTextFieldStyle()) .font(.body)…

VIEW QUESTION
Back To Top
Search