Hide/Show annotation in iOS

Product: iOS

Product Version: 17.3

Please give a brief summary of your issue: Hide/Show Annotation in Swift

Please describe your issue and provide steps to reproduce it: I’m trying to hide annotation on PDF. Using below code to hide. But its not working

               let pageCount = doc.getPageCount()
               for pageNumber in 1...pageCount {
                   if let page = doc.getPage(UInt32(pageNumber)) {
                       let annotationCount = page.getNumAnnots()
                       for i in 0..<annotationCount {
                           let annot = page.getAnnot(UInt32(i))
                            annot?.setFlag(PTAnnotFlag(rawValue: 1), value: true)
                       }
                       documentController.pdfViewCtrl.update(true) 
                   }
               }

Please provide a link to a minimal sample where the issue is reproducible: Create annotation on PDF and try to hide the annotations

1 Like

Thank you for reaching out for Support through our forums. In order to better assist you, would you be able to submit a minimum runnable sample project, along with a video of the issue you are experiencing? You can submit a support ticket here: Apryse

1 Like

My issue for fixed. Due to cache issue it was not updating.

1 Like

I’m glad to hear this issue has been resolved! Please feel free to reach out for any additional support through our request form: Apryse

1 Like