Mac/iOS Developer
See more
directory looks like (…State. In this directory we’ll be writing mostly functional components that can be used in multiple places throughout our app. Here’s an example of what a components/ directory looks like (examples pulled f…
As you can see above, we decorated our structs using protocols. Protocols force us to conform to them and also we add the ability we want. But a problem occurred above which is about holding canFi…
A protocol is like a basketball coach. He tells his players what to do, but he doesn’t know how to dunk a basketball.