In this NSURLProtocol tutorial you will learn how to work with the URL loading system and URL schemes to add custom behavior to your apps.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/76735/using-nsurlprotocol-swift