d
This commit is contained in:
16
src/V.swift
16
src/V.swift
@@ -7,21 +7,13 @@ struct V: View {
|
||||
VStack {
|
||||
HStack {
|
||||
Text("Check text field:")
|
||||
Text("'\(vm.t3)'")
|
||||
Text("'\(vm.text)'")
|
||||
.fontWeight(.bold)
|
||||
}
|
||||
/*
|
||||
TextField("Placeholder", text: $vm.text)
|
||||
|
||||
TextField("Binding-3", value: $vm.text, formatter: TextFieldValueOwner())
|
||||
.padding(8)
|
||||
.border(Color.red, width: 2)
|
||||
|
||||
TextField("Binding-2", text: vm.bt2)
|
||||
.padding(8)
|
||||
.border(Color.blue, width: 2)
|
||||
*/
|
||||
TextField("Binding-3", value: $vm.t3, formatter: SrcFmt())
|
||||
.padding(8)
|
||||
.border(Color.green, width: 4)
|
||||
.border(Color.green, width: 4)
|
||||
}
|
||||
.frame(width: 320)
|
||||
.padding()
|
||||
|
||||
Reference in New Issue
Block a user