From 0fffece811e4a2ae672bfae67f06307d7ae49ed1 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 14 Jun 2021 22:34:48 +0400 Subject: [PATCH] Fix motion --- .../SettingsUI/Sources/Themes/WallpaperGalleryItem.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/submodules/SettingsUI/Sources/Themes/WallpaperGalleryItem.swift b/submodules/SettingsUI/Sources/Themes/WallpaperGalleryItem.swift index 43d62ae361..c53f82f245 100644 --- a/submodules/SettingsUI/Sources/Themes/WallpaperGalleryItem.swift +++ b/submodules/SettingsUI/Sources/Themes/WallpaperGalleryItem.swift @@ -855,10 +855,6 @@ final class WallpaperGalleryItemNode: GalleryItemNode { } func setMotionEnabled(_ enabled: Bool, animated: Bool) { - if let entry = self.entry, case let .wallpaper(wallpaper, _) = entry, case .builtin = wallpaper { - return - } - if enabled { let horizontal = UIInterpolatingMotionEffect(keyPath: "center.x", type: .tiltAlongHorizontalAxis) horizontal.minimumRelativeValue = motionAmount