SwiftUI / CoreData / Master / Detail (with editing) / Xcode 11 - Beta 5

前端 未结 3 1342
故里飘歌
故里飘歌 2020-12-14 13:08

Working on a sample app. The goal is to have a list pulled up from CoreData in a Master, and then click on one to go to a detail, where you can edit the information and sav

3条回答
  •  无人及你
    2020-12-14 14:04

    You need to bind the entity in DetailView to the entity passed in from MasterView. Declare it like @Binding var entityName: EntityName

提交回复
热议问题