I am trying to understand the implementation of willSet and didSet in Swift. I would like to know if there is anyway, under the hood, swift relies on Obj-C KVO mechanism when a var is declared as follows. Note: This is used in a Cocoa app. I have to declare the var as @objc dynamic so as to bind this var to a control on UI.
@objc dynamic var someString: String? = nil {
didSet {
self.doSomething()
}
}