The code below was working fine before Swift 4.2:
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChange(notification:)), name:
For someone else out there, I was building (what I thought was) a UI-Independent class and did not import UIKit.
Nothing worked until I added at the top of my file, this:
import UIKit
It appears some notifications (those in UIApplication, UIResponder etc..) may have been refactored into UIKIt.