Posts

Post marked as solved
7 Replies
I am able to share the record. The question is is the shared record pushed to core data as my private records are or I have to create the operation to pull it?
Post not yet marked as solved
11 Replies
I am pretty sure that the tutorial example makes that happen automatically. If not then try what I did below, worke for me:The JobTableView below will open in the detail section when running on an iPad otherwise it replace the master on an iPhone. I however have a problem to figure out and that is how to have JobTableView replace the master instead of opening in the detail. If anyone knows, please advise. struct ContentView : View { private var jobs = Jobs() var body: some View { NavigationView{ List { NavigationLink(destination: JobTableView(jobs: self.jobs)) { MenuRowView(title: "Job System", subTitle: "Job System Detail") } MenuRowView(title: "Abc123", subTitle: "bbb") } .navigationBarTitle("TITLE", displayMode: .inline) } } } struct JobTableView : View { @ObjectBinding var jobs: Jobs var body: some View { NavigationView{ List(jobs.list ?? []) { job in JobTableViewCell(job: job) } .navigationBarTitle("Jobs", displayMode: .inline) .navigationBarItems(trailing: Button(action: { self.isNewJobPresented = true }, label: { Text("New") }) ) } } }