forked from shadowfacts/Tusker
Fix avatars in share sheet being blurry
This commit is contained in:
parent
f51f3c8a94
commit
b614226871
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue