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