How to auto import dependency framework in swift

Viewed 265

I have a module LibGame, which contains some helpers on top of SpriteKit.

Now I want to auto import SpriteKit whenever I import LibGame. Because most likely the module depending on my LibGame will use SpriteKit too.

This is similar to UIKit: if I import UIKit, I can use things like CGFloat, which means CoreGraphics is auto imported when I import UIKit.

How can I do this?

Note: I am using swift when I create the framework, but I do see a LibGame.h file as well in my module.

1 Answers
Related