SwiftUI - Customize TextField Border with border Modifier
Revision as of 08:34, 31 July 2024 by PeterHarding (talk | contribs) (Created page with " =Customize TextField Border with border Modifier= <pre> struct ContentView: View { @State private var text = "" var body: some View { TextField("Enter text", text: $text) .padding(10) .border(Color.blue, width: 2) .padding() } } </pre> Category:SwiftUI")
Customize TextField Border with border Modifier
struct ContentView: View { @State private var text = "" var body: some View { TextField("Enter text", text: $text) .padding(10) .border(Color.blue, width: 2) .padding() } }