Errors in sample code

There are some errors when attempting to run the sample code:

Cannot convert value of type 'String' to expected argument type 'PDFAnnotationSubtype'

I understand the error but I'm unsure what it's looking for.

I'm running Xcode 14, targeting iOS 12

Thx for any feedback!

Which sample code ? Without that information and a copy of the code, your question cannot be answered.

yeah which sample code

I think that's because your OS version isn't enough for the code.

since you're not providing the source code, that all I can do.

tip: try in Simulator at iOS 116

https://developer.apple.com/videos/play/wwdc2022/10089/

Sample Code link is in this page. check "PDFAnnotationWidgetsAdvanced"

Errors in sample code
 
 
Q