I am working on PDF Kit using swift. I want to rotate PDFAnnotation. Is there any way to rotate PDFAnnotation? I am trying with the below code but I am not successful to get the desired result.
annotation.bounds.origin = annotation.bounds.origin.applying(CGAffineTransform(rotationAngle: -90 * CGFloat.pi / 180.0))