Fix avatars in share sheet being blurry

This commit is contained in:
Shadowfacts 2023-04-22 21:48:12 -04:00
parent f51f3c8a94
commit b614226871
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ class ShareHostingController: UIHostingController<ShareHostingController.View> {
let image = UIImage(data: data) else {
return nil
}
return await image.byPreparingThumbnail(ofSize: CGSize(width: 50, height: 50)) ?? image
let size = 50 * UIScreen.main.scale
return await image.byPreparingThumbnail(ofSize: CGSize(width: size, height: size)) ?? image
}
private let controller: ComposeController