对于一个 PDFDocument 包含注释的 widgetFieldType 属于 PDFAnnotationWidgetSubtype.text 和 PDFAnnotationWidgetSubtype.button 是否可以为这些注释禁用用户交互(即单击复选框不会导致其切换)?
PDFDocument
widgetFieldType
PDFAnnotationWidgetSubtype.text
PDFAnnotationWidgetSubtype.button
pdfView.document?.page(at: 0)?.annotations.filter { $0.widgetFieldType == PDFAnnotationWidgetSubtype.button }.forEach { $0.shouldDisplay = false } }