IOS Swift Today Extension: import a class from a container application?

I have an application with Today widgets. I would like to use the model class from the container application in TodayViewController.swift .

Is it possible?

I copied the file to the Today Extension folder and tried to import it. No dice.

I can not find the answer in the documentation or on the Internet.

thank

+14
ios swift today-extension ios8-today-widget
03 Feb '15 at
source share
1 answer

You need to specify the file in the target membership. Select the file, and then select the correct target in the right pane.

enter image description here

+26
Feb 03 '15 at
source share



All Articles