From 4c31ac11902a89ecf481bd1b10ee840c7f027f71 Mon Sep 17 00:00:00 2001 From: Martin Krafft Date: Tue, 7 Dec 2021 16:39:04 +0100 Subject: [PATCH] Fixed issue with shared images not showing in preview on iOS --- Plugins/NativeShare/iOS/NativeShare.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Plugins/NativeShare/iOS/NativeShare.mm b/Plugins/NativeShare/iOS/NativeShare.mm index 5825480..73e485c 100644 --- a/Plugins/NativeShare/iOS/NativeShare.mm +++ b/Plugins/NativeShare/iOS/NativeShare.mm @@ -78,11 +78,7 @@ - (NSString *)activityViewController:(UIActivityViewController *)activityViewCon for( int i = 0; i < filesCount; i++ ) { NSString *filePath = [NSString stringWithUTF8String:files[i]]; - UIImage *image = [UIImage imageWithContentsOfFile:filePath]; - if( image != nil ) - [items addObject:image]; - else - [items addObject:[NSURL fileURLWithPath:filePath]]; + [items addObject:[NSURL fileURLWithPath:filePath]]; } UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:items applicationActivities:nil];