S01E24: [TDD šŸ… 21] Running the complete Swift Quiz app for the first time

Essential Developer
Essential Developerā€Šā€”ā€ŠiOS
1 min readMay 24, 2017

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: YouTube ā€¢ Twitter ā€¢ Facebook ā€¢ GitHub

--

--

Essential Developer
Essential Developerā€Šā€”ā€ŠiOS

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