Section {
TextField("Title", text: $scrumData.title, prompt: nil)
} header: {
Text("Meeting Info")
}
TextField
takes a binding to aString
. A binding is a reference to a state that is owned by another view. You access a binding toscrumData.title
with the expression$scrumData.title
.
문자열에 대한 바인딩을 사용. 바인딩은 다른 뷰가 가진 state에 대한 참조.