I am currently writing Swift 3 code in Xcode 8.
When using oldValue and newValue default parameters inside the willSet and
oldValue
newValue
willSet
var vc:UIViewController? { willSet { print("New value is \(newValue)") } didSet { print("Old value is \(oldValue)") } }