I read the responses to this post and only then realized I was the original author. Does apple not notify the author if a reply is posted?
I ended up storing this in an environment object and then using that to do a lookup when generating the sheet. Between this hack and another workaround to be able to observe core data changes but use basic view models to make the UI, this code is awful and very fragile. I really wish an example project or two was available, this shouldn’t be that hard.
Post
Replies
Boosts
Views
Activity
I’m having the same issue but with previews (works ok in simulator). The same code has working previews in Xcode 11.
Glad I'm not alone in being able to stitch everything together. Anybody else have a non-Apple provided example to mirror?
I’m also interested in learning how to put this into a store class which is storing to Core Data behind the scenes. I have this working myself, but I’m not sure it’s the right way to do it and it’d be great to follow the lead of someone more experienced and/or Apple.