magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

How to setup MagicalRecord for Today Extension ? #1334

Closed SerhiiMatvieiev closed 5 years ago

SerhiiMatvieiev commented 5 years ago

Hello everyone! I have already released application on AppStore, and now I want to add Today Extension where I need to use data from the main application.

I configured CoreData stack like this:

MagicalRecord.setDefaultModelNamed("AppName.momd")
MagicalRecord.setupCoreDataStack(withAutoMigratingSqliteStoreNamed: "AppName")

How I can configure MagicalRecord to share data between extension ? Thanks!