Let’s learn about Key-value observing with Swift 5 and Xcode 10. Key value observer is used to observe for changes on a given variable. Check out this video tutorial.
I recently have done two video tutorials for Swift beginners. If you are brand new to Swift then going through this videos will get you started with Swift. Part 1 Part 2 If you enjoy the videos, do subscribe to my YouTube channel.
I’m not sure why many developers (even some senior developers) confuse Protocols with Object and Struct. You can think of Protocols as a superclass with some rules. When you conform to that class you’ll have to simply obey those rules. In this case these rules can be methods and properties. Let’s look at an example […]