PaperMarkupViewController doesn't conform to MarkupEditViewController.Delegate

In the Meet PaperKit WWDC session in provided sample code, there's:

let markupEditViewController = MarkupEditViewController(supportedFeatureSet: .latest)
markupEditViewController.delegate = paperViewController

However PaperMarkupViewController doesn't conform to MarkupEditViewController.Delegate, it only conforms to MarkupToolbarViewController.Delegate. But based on the demo, MarkupEditViewController is for iOS and MarkupToolbarViewController is for macOS.

Compiler gives me the following error:

Cannot assign value of type 'PaperMarkupViewController?' to type '(any MarkupEditViewController.Delegate)?' Arguments to generic parameter 'Wrapped' ('PaperMarkupViewController' and 'any MarkupEditViewController.Delegate') are expected to be equal

What's the solution here?

Hi @shargath could you please open a bug report, and post the FB number here once you do so I can follow up on the issue. Bug Reporting: How and Why? has tips on creating your bug report.

Hi there, here it is: FB20221434

PaperMarkupViewController doesn't conform to MarkupEditViewController.Delegate
 
 
Q