cannot modify the original post, so repost the question: how to get the value picked by catePickerView from cateName of CatesEnt entity to be saved in fileCate in FilesEnt entity via a TextField?
HStack { Text("Folder:") TextField("select", text: $fileData.fileCate) catePickerView(cateName: Array(cates), selectedCate: $selectedCate) // catePickerView works fine by itself }
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: