title: Type 'NSNotification.Name' has no member 'keyboardDidShowNotification'
body: <p>I'm getting this error with Swift 4.2</p>
  
  <blockquote>
    <p>Type 'NSNotification.Name' has no member 'keyboardDidShowNotification'</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardDidShow(notification:)), name: NSNotification.Name.keyboardDidShowNotification, object: nil)
  </code></pre>
  
  <p>Following one was working fine with Swift 4 but not with Swift 4.2</p>
  
  <pre><code>NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardDidShow(notification:)), name: NSNotification.Name.UIKeyboardDidShow, object: nil)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CACG0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CACG0.png" alt="enter image description here"></a></p>
  
  <p>Apple document Ref: <a href="https://developer.apple.com/documentation/uikit/uiresponder/1621602-keyboarddidshownotification" rel="noreferrer">NSNotification.Name.keyboardDidShowNotification</a></p>