我正在尝试为我的DataModel屏幕创建一个SwiftUI。我面临的问题是,我使用Core扫描一个NFCTag (执行一些任务),然后我想更新SwiftUI屏幕。数据获取/操作是异步的。Should change someVar at the end of the calculation现在的问题是嵌套的可观测对象不能在SwiftUI中工作。我试图在NFCController中创建一个可观察的变量,在这个变量中,我创建了一个已
我有以下代码 let u = await firebase.auth().currentUser;setUser(u) let prof = await firebase.firestore().collectionprof = await firebase.firestore().collection('efg').doc(u.uid).get(