Use Strategy | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/12

The Swift files in the Resources folder (in the download materials) already contains all the code that is typed out during this video.

+1 on Resources folder being typed out. I also noticed a typo on SequentialQuestionStrategy file.

func questionIndexTitle() → String {
return “(questionIndex + 1)(questionGroup.questions.count)”
}

should have / in between like RandomQuestionStrategy otherwise question count would be 110 not 1/10.

Thanks for pointing these out! I’ll make sure these get fixed in the next update for this course. :]