S01E13: Improving the Game Flow with Swift Generics

In this episode, we improve the Router and Flow components of the Engine framework by replacing the previously hardcoded String type for Question and Answer.

As shown in the first episode, we set a goal of being able to play the game with many types of questions and answers, such as text, image, audio and video. To achieve this level of flexibility, we decided to abstract the Question and Answer types by using Swift's generics.

Finally, we didn't see any failing tests after making the changes, validating that we did not break the Flow's behaviour.

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

Comment