SwiftPlate icon indicating copy to clipboard operation
SwiftPlate copied to clipboard

Optional playground support

Open uraimo opened this issue 8 years ago • 4 comments

Adding a playground to a project generated with SwiftPlate is a bit convoluted, you need to wrap it in a workspace and then create and register in the plist an empty umbrella c header (that swiftplate normally doesn't include).

It would be nice to have all this done automatically when creating the project, if someone else is interested i could implement it.

uraimo avatar Jan 09 '17 08:01 uraimo

Sounds great to me! 👍 You don't really need the umbrella C header for a pure Swift project though, right?

JohnSundell avatar Jan 10 '17 09:01 JohnSundell

You don't really need the umbrella C header for a pure Swift project though, right?

Correct, you need it only if you want to export something to objective-c, and for some mysterious reason to use the framework inside playgrounds.

So, i think we could have both the workspace and the header in the template and then remove them if the user doesn't care about playground support, better than generating them via code or having a separate branch with this additional stuff.

uraimo avatar Jan 10 '17 14:01 uraimo

Yup I'm super interested in that feature! @uraimo!

agisilaos avatar Apr 02 '17 19:04 agisilaos

@agisilaos it's in my TODO list, will have time for this soon.

uraimo avatar Apr 08 '17 20:04 uraimo