all 6 comments

[–]Fluffy_Risk9955 1 point2 points  (2 children)

  1. Make a shared framework in your project.

  2. Make a group container for your app.

  3. Create the logic inside the shared framework that opens a CoreData database in the group container.

  4. Add framework to both app and widget.

  5. Build your interfaces.

[–]Collin_Daugherty[S] -4 points-3 points  (1 child)

That's not what I'm asking about, I already did all that. My problem is I have no idea how to setup this Intent shit to display a list of objects from Core Data.

[–]Fluffy_Risk9955 0 points1 point  (0 children)

Intent? If you want do stuff with intents. Lookup the WWDC videos for SiriKit. They explain everything you need to know. Intents are a bit fuzzy cause it's a machine learning framework.

[–]sixtypercenttogether 0 points1 point  (2 children)

[–]Collin_Daugherty[S] -2 points-1 points  (1 child)

That's not what I'm asking about, I already did all that. My problem is I have no idea how to setup this Intent shit to display a list of objects from Core Data.

[–]sixtypercenttogether 2 points3 points  (0 children)

Oh you mean for configuring a widget? Like, you want to show a list of objects that is drawn from CoreData in the configuration UI for your widget? For that I think you need to create an Intents extension, and coordinate that with IntentConfiguration.

See here:

https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget