diff --git a/src/ios/PhotoViewer.m b/src/ios/PhotoViewer.m index be8d161..4eb5366 100644 --- a/src/ios/PhotoViewer.m +++ b/src/ios/PhotoViewer.m @@ -89,6 +89,9 @@ - (NSURL *)localFileURLForImage:(NSString *)image NSURL *tmpDirURL = [NSURL fileURLWithPath:NSTemporaryDirectory() isDirectory:YES]; NSString *filename = [[NSUUID UUID] UUIDString]; NSURL *fileURL = [NSURL URLWithString:image]; + if ([fileURL isFileReferenceURL]) { + return fileURL; + } NSData *data = [NSData dataWithContentsOfURL:fileURL];