S01E24: [TDD 🍅 21] Running the complete Swift Quiz app for the first time

In this episode, we plug all the modules together and play the Quiz game for the first time!

As we’re creating questions and answers for the Quiz and connecting all modules together, everything seems fine, until… Bam!

Type [String] does not conform to protocol ‘Equatable’.

We discuss the reason why the foundation Array type not conforming to Equatable is a limitation in Swift so far and we consider possible solutions.

We decide to change it to a Set rather than an Array since we have already solved the order problem. To do so, we undergo a big refactoring backed up by our tests, which goes smoothly. TDD paid off once again!

Finally, we run the application for the first time and… it works!

Subscribe now to our Youtube channel and catch free new episodes every week and follow along the project’s progress on GitHub.


Originally published at www.essentialdeveloper.com.

Let’s connect

If you enjoyed this article, visit us at https://essentialdeveloper.com and get more in-depth tailored content like this.

Follow us on: YouTubeTwitterFacebookGitHub

Essential Developer — iOS

Skilled, disciplined and professional iOS software development resources tailored for you. Join us https://essentialdeveloper.com

Essential Developer

Written by

Skilled, disciplined and professional iOS development resources tailored for you. Join us https://essentialdeveloper.com

Essential Developer — iOS

Skilled, disciplined and professional iOS software development resources tailored for you. Join us https://essentialdeveloper.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade