From 4cc8a95c3d226ba92b1a7e92086093ed4e5cd9f6 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 16 Oct 2024 19:06:15 +0800 Subject: [PATCH] [chore]Code formatting --- .../share_plus/ios/Classes/FPPSharePlusPlugin.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/share_plus/share_plus/ios/Classes/FPPSharePlusPlugin.m b/packages/share_plus/share_plus/ios/Classes/FPPSharePlusPlugin.m index 388c5d09cc..8cf43d0c57 100644 --- a/packages/share_plus/share_plus/ios/Classes/FPPSharePlusPlugin.m +++ b/packages/share_plus/share_plus/ios/Classes/FPPSharePlusPlugin.m @@ -229,10 +229,12 @@ - (LPLinkMetadata *)activityViewControllerLinkMetadata: metadata.originalURL = [NSURL fileURLWithPath:description]; if (_mimeType && [_mimeType hasPrefix:@"image/"]) { - // When using iPhone 13, there may be a situation where it cannot be awakened + // On iPhone 13, when sharing an image and the image is very large, + // the sharing box may occasionally fail to be awakened UIImage *image = [UIImage imageWithContentsOfFile:_path]; - metadata.imageProvider = [[NSItemProvider alloc] initWithObject:[self imageWithImage:image - scaledToSize:CGSizeMake(120,120)]]; + metadata.imageProvider = [[NSItemProvider alloc] + initWithObject:[self imageWithImage:image + scaledToSize:CGSizeMake(120, 120)]]; } }