iOS Swift Today Extension: import class from container app?

后端 未结 1 1984
一生所求
一生所求 2020-12-30 02:14

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?

相关标签:
1条回答
  • 2020-12-30 02:47

    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

    0 讨论(0)
提交回复
热议问题