I am converting a project in to Swift code and have come across an issue in a setter. My Objective-C code looked like this:
- (void)setDocument:(MyDocument *
Here's a Swift 3 version
var document : UIDocument? { didSet { useDocument() } }