This commit is contained in:
Михаил Капелько
2023-12-13 19:19:53 +03:00
parent acaaf68d9f
commit 30efa129a8
5 changed files with 262 additions and 0 deletions

20
src/V.swift Normal file
View File

@@ -0,0 +1,20 @@
import SwiftUI
struct V: View {
@StateObject var vm = VM()
var body: some View {
VStack {
HStack {
Text("Check text field:")
Text("'\(vm.text)'")
.fontWeight(.bold)
}
TextField("Placeholder", text: $vm.text)
.padding(8)
.border(Color.red, width: 2)
}
.frame(width: 320)
.padding()
}
}