Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

mark reilly
PLUS
mark reilly
Courses Plus Student 3,761 Points

Looking for resources/ strategies to help move C source code to swift?

Reintroducing myself to programing and have taken some Swift courses. Would like to use some open source C programs on iOS. Any suggestions/ tools on how to accomplish this would be appreciated.

Thanks

mark reilly
mark reilly
Courses Plus Student 3,761 Points

Thanks for the instruction, the source code is written in ISO C. Will attempt use of "Bridging Header" and let you know result.

2 Answers

Michael Hulet
Michael Hulet
47,913 Points

Assuming it's built for iOS, you should be able to use any C code as-is with Swift. When you drag and drop it into your project it'll ask if you wanna make a "Bridging Header". Select yes, and in the file it creates, #import any headers you want to use with Swift

AR Ehsan
AR Ehsan
7,912 Points

Hello. I hope everyone is doing well. They are some topics that I figured out a swift programmer should know. I would love Treehouse to have courses of the following topics.

1) CoreData; 2)Parse; 3)Firebase; 4)and some other advanced topics;

All written in swift. If anybody would like other swift course suggestions, please join this discussion

Thanks!