 NotificationCenter.default.addObserver(self, selector: #selector(listnerFunction(_:)), name: NSNotification.Name(rawValue: "notificationName"), object: nil)  func listnerFunction(_ notification: NSNotification) {     if let data = notification.userInfo?["data"] as? String {         