Grand Central Dispatch is one of those fundamental technologies that most Swift developers have used countless times. This week, let’s go beyond async and take a look at some situations where GCD can be really useful, and how it can provide simpler (and more “Swifty”) options to many other Foundation APIs.
Protocols in Swift and Objective-C are a powerful tool to decouple your code. Having optional members is sometimes the right conceptual model for your design. How can you design your protocols to provide optional semantics without specifying them as optional or @optional?
In this tutorial we will create a Facebook Messenger bot, a simple one, that just respond us with a reversed message and a structured messages with Swift. We will start from scratch to get a complete working bot.