You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
530 B

import SwiftUI
struct NounoursView: View {
//@Binding public var nounours: Nounours
@ObservedObject var nounoursVM: NounoursVM
var body: some View {
VStack(alignment: .leading) {
Label(nounoursVM.model.name, systemImage: "person")
TextField("name: ", text: $nounoursVM.model.name)
}
}
}
struct NounoursView_Previews: PreviewProvider {
static var previews: some View {
NounoursView(nounoursVM: NounoursVM(original: loadBeds()[0].nounours[0]))
}
}