This commit is contained in:
Михаил Капелько
2023-12-16 10:26:31 +03:00
parent cd4c6fd80b
commit 769ade70c9
4 changed files with 30 additions and 116 deletions

View File

@@ -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()