This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/18
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/18
The contents of starter and final folders for almost all the playground projects have been interchanged, just thought I’d notify
@jrg.developer Can you please help with this when you get a chance? Thank you - much appreciated! :]
Whoops, this one is indeed flipped
We’ll get this fixed and audit the others… thanks for pointing this out!
I don’t get it that why use the memento. Even Comment following code in this playground, it still works!
typealias GameMemento = Data
Could you explain more for that?
Anyway, I think you should change folder between starter and final. I found that code in starter folder.
@jrg.developer Do you have any feedback about this? Thank you - much appreciated! :]
In this case, the Memento type is simply Data
. To make this obvious in the playground example, this typealias
adds another “name” for Data – that is, GameMemento
.
You could indeed simply use Data
throughout the playground too. This is merely a hint to indicate to other readers (developers) what your intentions are. :]