Can I Use Code From Stack Overflow?

Hello, I have been working on my submission for the Swift Student Challenge and have been searching for a solution for how to complete a trivial task related to dates and calendars in Swift. After searching, I found an answer on Stack Overflow that works perfectly for my project. Am I allowed to submit a playground that includes this code or do I need to rewrite or reinvent the code somehow?

Thanks

There’s two parts to this:

  • Does the author of the code allow you to use it?

  • Does Apple allow you to use code you didn’t write?

With regards the first, I can’t offer definitive answers on that front. However, I suspect that sites like Stack Overflow have a standard policy for this, and I recommend that you research that.

With regards the second, the Swift Student Challenge fine print addresses that specifically (search the page for “open source”).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Can I Use Code From Stack Overflow?
 
 
Q