From b61422687175c88ff30d32b38d351bed52d3cc21 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 22 Apr 2023 21:48:12 -0400 Subject: [PATCH] Fix avatars in share sheet being blurry --- ShareExtension/ShareHostingController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ShareExtension/ShareHostingController.swift b/ShareExtension/ShareHostingController.swift index df29e7dd36..4cfab9878b 100644 --- a/ShareExtension/ShareHostingController.swift +++ b/ShareExtension/ShareHostingController.swift @@ -19,7 +19,8 @@ class ShareHostingController: UIHostingController { 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