title: iOS 11 drag & drop: dropping on standard Calendar app
body: <p>I'm trying to integrate the iOS 11 drag&amp;drop feature in an app, from Xcode 9 beta.
  I'm interesting on creating a NSItemProvider that can be understood by the standard calendar app. My drag starts from a UITableView, so only a single dragDelegate method implemented.</p>
  
  <p>So far, I have tried the following:</p>
  
  <pre><code>    let text = "Rendez-vous at \(clientName)"
      let data = text.data(using: .utf8)
  
      let itemProvider = NSItemProvider()
      itemProvider.registerDataRepresentation(forTypeIdentifier: kUTTypeCalendarEvent as String, visibility: .all) { completion in
          completion(data, nil)
          return nil
      }
  
      let dragItem = UIDragItem(itemProvider: itemProvider)
  </code></pre>
  
  <p>And also tried by using the type identifier kUTTypePlainText. No luck, calendar app does not register the drop.</p>
  
  <p>I can't find any official documentation about this. I'm hoping the calendar app is looking for some standard calendar data, and this is not limited to standard apps communicating with each other. For example, you can drag text from the notes app and drop it in calendar to create an event.</p>
  
  <p>Anyone knows what I could try ?</p>
  
  <p>Thanks in advance.</p>