Access master data on watchos3

I have an existing iOS application, and now I'm trying to add a watchOS3 application to work with this application. The problem I'm struggling with is accessing my regular store from my watch extension. I tried to encapsulate my main data stack with my main data model in a common structure. However, with watchOS3 (probably watchOS2 already), it is no longer possible to share the same structure between the watch application and the iOS application, as is done in this example .

So, how do I manage to use the same kernel data model from the chat application and my iOS application? How can I create this generic container, Apple refers to documentation ?

+4
source share

Source: https://habr.com/ru/post/1661634/


All Articles