From a53333be20ed9b784b948e61f1b6ff49dc021ffd Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Fri, 26 Jul 2024 09:11:42 +0100 Subject: [PATCH] ios: increase wallpaper scale (#4517) --- apps/ios/Shared/Views/Helpers/ChatWallpaper.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ios/Shared/Views/Helpers/ChatWallpaper.swift b/apps/ios/Shared/Views/Helpers/ChatWallpaper.swift index 76b0102a6c..d8ddc1c306 100644 --- a/apps/ios/Shared/Views/Helpers/ChatWallpaper.swift +++ b/apps/ios/Shared/Views/Helpers/ChatWallpaper.swift @@ -26,7 +26,7 @@ struct ChatViewBackground: ViewModifier { // Prevent range bounds crash and dividing by zero if size.height == 0 || size.width == 0 || image.size.height == 0 || image.size.width == 0 { return } image.shading = .color(tint) - let scale = imageScale * 1.57 // for some reason a wallpaper on iOS looks smaller than on Android + let scale = imageScale * 2.5 // scale wallpaper for iOS for h in 0 ... Int(size.height / image.size.height / scale) { for w in 0 ... Int(size.width / image.size.width / scale) { let rect = CGRectMake(CGFloat(w) * image.size.width * scale, CGFloat(h) * image.size.height * scale, image.size.width * scale, image.size.height * scale)