title: NotificationCenter - text transfer between views
body: <p>I have this code:</p>
  
  <p>MainViewControler.swift:</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
      NotificationCenter.default.addObserver(self, selector: #selector(showAlertMessage(notification:)), name: Notification.Name("NotificationAlertMessage"), object: errorMessage.self) 
  
  }
  
  
  @objc func showAlertMessage(notification: NSNotification) {
          print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! \(notification.title)")
  }
  </code></pre>
  
  <p>AlertStruct.swift:</p>
  
  <pre><code>struct errorMessage{
      var title: String?
      var description: String?
  }
  </code></pre>
  
  <p>Propierties.swift</p>
  
  <pre><code>func showError(){
      NotificationCenter.default.post(name: Notification.Name("NotificationAlertMessage"), object: errorMessage(title: "tytuł", description: "description"))
  }
  
  override func viewDidLoad() {
      super.viewDidLoad()
      showError()   
  }
  </code></pre>
  
  <p>Propierties.swift is child in containerView MainViewControler.</p>
  
  <p>I would like to display the function ShowAlertMessage in my MainViewControler with data sent from Propierties -> func showError ()</p>
  
  <p>How to do it? My code does not want to compile / work correctly :(</p>