Invoking iOS app Code from WatchOS ?

We have iOS app in whcih we have implemented all the API's. Now we want to use the same code for our Watch App. How this is possible to use all the existing code for our watch app.
We are already using WatchConnectiviyt which is only sharing data between the apps but not invoking the iOS app code.

Replies

Hope I do not misunderstand your question.


If the code is not UI code, but "pure processing",

- select the file in IB

- Open File Inspector

- add 'myApp Watch Extension" as target