Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Swift Today Extension: import class from container app?

I have an app with a Today widget. I would like to use a model class from the container app in the TodayViewController.swift.

Is such a thing possible?

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

I can't find an answer in the documentation or online.

Thanks

like image 220
MayNotBe Avatar asked Feb 03 '15 14:02

MayNotBe


1 Answers

You need to include the file in the target membership. Select the file and then, in the right hand pane, tick the correct target.

enter image description here

like image 68
Gary Riches Avatar answered Nov 04 '22 07:11

Gary Riches