Fix gradient wallpaper rotation

This commit is contained in:
Ilya Laktyushin
2019-12-16 17:21:18 +04:00
parent a35e8c0aa8
commit 165c334854
3 changed files with 7 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ extension TelegramWallpaper: Codable {
}
}
self = .gradient(Int32(bitPattern: topColor.rgb), Int32(bitPattern: bottomColor.rgb), WallpaperSettings(blur: blur, motion: motion))
self = .gradient(Int32(bitPattern: topColor.rgb), Int32(bitPattern: bottomColor.rgb), WallpaperSettings(blur: blur, motion: motion, rotation: rotation))
} else {
var slug: String?
var color: Int32?