title: UIUserNotificationSettings deprecated in iOS 10
body: <p>I am looking for the alternate way of implementing UIUserNotificationSettings in iOS 10. </p>
  
  <p>Apple documentation has given the below framework for the further usage. UNNotificationSettings in the link <a href="https://developer.apple.com/reference/usernotifications/unnotificationsettings">here</a>.</p>
  
  <p>Is there any one who can help me with the sample code to implement the below using the UNNotificationSettings instead of UIUserNotificationSettings</p>
  
  <pre><code>let notificationSettings = UIUserNotificationSettings(
          forTypes: [.Badge, .Sound, .Alert], categories: nil)
      application.registerUserNotificationSettings(notificationSettings)
  </code></pre>