I’ve SwiftLint enabled in project and it throws an warning for below function :
override func observeValue(forKeyPath keyPath: String?, of _: Any?, change: [NSKeyValueChangeKey: Any]?, context _: UnsafeMutableRawPointer?) {
. . .
}
Shell Script Invocation Warning : Block Based KVO Violation : Prefer the new block based KVO API with key paths when using Swift 3.2 or later.
Any fix for this?