Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Swift

bytepunch
seal-mask
.a{fill-rule:evenodd;}techdegree
bytepunch
iOS Development with Swift Techdegree Student 5,114 Points

When I Cmd- Click on Array I find the Array<Element> struct without any protocol.

When I Cmd- Click on Array I find the Array<Element> struct without any protocol.

Does that mean that there is a major change in swift language? I use Swift 5.0.1 on my machine.

Dan Weru
Dan Weru
47,637 Points

You are most welcome.

1 Answer

Dan Weru
Dan Weru
47,637 Points

bytepunch, yes there have been major changes in Swift. This course was taught using Swift 3. There have been two major changes (i.e Swift 4 and Swift 5). Thusly, there are breaking changes.

If you wish to use Swift 5, a significant part of this course is absolutely dated. I would recommend using >>> this book on apple books (iBooks): “The Swift Programming Language (Swift 5.1 beta)” by Apple Inc. https://books.apple.com/ke/book/the-swift-programming-language-swift-5-1-beta/id1002622538