Skip to content

Commit a75487e

Browse files
stevikiradazzouz
andauthored
Update ios/RCTPSPDFKit/RCTPSPDFKitView.m
Co-Authored-By: radazzouz <[email protected]>
1 parent 5261ea7 commit a75487e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RCTPSPDFKit/RCTPSPDFKitView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ - (BOOL)removeAnnotationWithUUID:(NSString *)annotationUUID {
213213
NSArray<PSPDFAnnotation *> *allAnnotations = [[document allAnnotationsOfType:PSPDFAnnotationTypeAll].allValues valueForKeyPath:@"@unionOfArrays.self"];
214214
for (PSPDFAnnotation *annotation in allAnnotations) {
215215
// Remove the annotation if the name matches.
216-
if ([[annotation valueForKey:@"uuid"] isEqualToString:annotationUUID]) {
216+
if ([annotation.uuid isEqualToString:annotationUUID]) {
217217
success = [document removeAnnotations:@[annotation] options:nil];
218218
break;
219219
}

0 commit comments

Comments
 (0)