December 2018
Intermediate to advanced
414 pages
10h 19m
English
Let's take a look at how to extract a single protocol:
protocol CardReaderState { func perform(context: CardReader)}
Next, we need to implement all our states as structs or classes, preferring singletons if possible. Let's use structs for this example.
Read now
Unlock full access