SourceKitten icon indicating copy to clipboard operation
SourceKitten copied to clipboard

Swift framework with displayed classes and methods declaration

Open MedAmineWinners opened this issue 6 years ago • 3 comments

Hi @jpsim

I was discussing with you on the #405 issue, I'm actually creating my swift framework and I want to make my classes and methods declarations visible to my framework users.

After creating my cocoa touch framework and generating it, only a projectName-swift.h class appear under headers folder, and this class does not contain my classes or methods declarations already created with public key.

And like I want to make these declarations visible to my framework users I thought about generating a swift interface containing all the declarations I made. the same like the interface generated by Xcode on related items. I used your req.yml file to generate the interface but only the content of my project name-swift.h was generated(does not contain any important thing for me).

What I want to know, is this the best way to make my classes and methods visible for my swift framework users ? if it's not do you have any suggestion for me ? should I make the framework on obj-c to make declarations visible in header file like before...

MedAmineWinners avatar Feb 07 '19 15:02 MedAmineWinners

I'm using this https://github.com/bq/mini-swift/blob/master/Scripts/update_docs.rb for my interface

minuscorp avatar Nov 18 '19 18:11 minuscorp

But i'd like a more constant way of making this interfaces.

minuscorp avatar Nov 18 '19 18:11 minuscorp

I've created https://github.com/minuscorp/ModuleInterface @MedAmineWinners for this purpose ^^

minuscorp avatar Nov 23 '19 18:11 minuscorp