20

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

4

1 回答 1

35

您需要将该文件包含在目标成员资格中。选择文件,然后在右侧窗格中勾选正确的目标。

在此处输入图像描述

于 2015-02-03T14:51:15.573 回答