Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swiftui 如何移动列表上的房间(WWDC 2019视频204)?_Swiftui - Fatal编程技术网

Swiftui 如何移动列表上的房间(WWDC 2019视频204)?

Swiftui 如何移动列表上的房间(WWDC 2019视频204)?,swiftui,Swiftui,因此,我正在制作房间的快捷界面列表,我一直在研究如何修复移动功能 我已经查看了方法列表,但我似乎无法确定它将是哪一个,因为move方法似乎已经不存在了 func move(from source: IndexSet, to destination: Int) { store.rooms.move(fromOffSets: source, toOffset: destination) } “[Room]”类型的值没有成员“move”;你是说“移除”吗 我不是想搬走,只是想把名单上的房间搬

因此,我正在制作房间的快捷界面列表,我一直在研究如何修复移动功能

我已经查看了方法列表,但我似乎无法确定它将是哪一个,因为move方法似乎已经不存在了

func move(from source: IndexSet, to destination: Int)
{
    store.rooms.move(fromOffSets: source, toOffset: destination)
}
“[Room]”类型的值没有成员“move”;你是说“移除”吗


我不是想搬走,只是想把名单上的房间搬走。

我也为此而奋斗。我最好的猜测是,对于演示,他们使用的api表面积还不是预览的一部分。我发现有几件展示的东西不可用。例如,表单视图是另一个