I see an important difference between your code and those from the keynote. In the keynote it's: completionHandler: { [weak self] (object, error) in while in your code it's completionHandler: { (object, error) in. I suppose, they explicitly added a weak reference to self to avoid memory leak.
Topic:
Programming Languages
SubTopic:
Swift
Tags: