This commit is contained in:
Михаил Капелько
2023-12-15 18:56:19 +03:00
parent 36373058a5
commit 8cd6dac189
3 changed files with 46 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ struct V: View {
Text("'\(vm.text)'")
.fontWeight(.bold)
}
/*
TextField("Placeholder", text: $vm.text)
.padding(8)
.border(Color.red, width: 2)
@@ -17,6 +18,10 @@ struct V: View {
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)
}
.frame(width: 320)
.padding()