fulldecent / swift5-module-template

An opinionated starting point for awesome, reusable Swift 5 modules
MIT License
450 stars 56 forks source link

Adding ObjC file to template #36

Closed dm-z closed 7 years ago

dm-z commented 7 years ago

Hey,

Thanks a lot for merging my pull request https://github.com/fulldecent/swift3-module-template/pull/35

I have a question after merging - should I add one ObjC class to the template, so it would be obvious for users how to add objc files and have interoperability with swift code? What do you think?

P.S. I think that this template can be universal for both languages. Ofc example and tests will still be in Swift, which is not a problem for me.

fulldecent commented 7 years ago

This is a great idea and it will let me /finally/ merge into pod-template.

Can you think of a classy, not contrived, way to add another ObjC file in there?

dm-z commented 7 years ago

Can you clarify what do you mean by "classy"? I'm not sure I get what you mean :)

P.S. My idea was to add a file with ObjC code to "Add source code with some functionality to the module" recipe step.

fulldecent commented 7 years ago

The current example code displays a chess piece. The new code should also do something useful, not just print "hello world".

fulldecent commented 7 years ago

Fixed in #37, thank you!