#StackBounty: #ios #swift How to auto import dependency framework in swift

Bounty: 50

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.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.