Skip to content

Commit

Permalink
[chore]Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-Plaud committed Oct 16, 2024
1 parent 1532868 commit 4cc8a95
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]];
}
}

Expand Down

0 comments on commit 4cc8a95

Please sign in to comment.