This commit is contained in:
Peter
2019-08-30 23:32:32 +04:00
parent ee8deffc76
commit f1d1754aa5
326 changed files with 4981 additions and 2895 deletions

View File

@@ -6,6 +6,7 @@ import Display
import SwiftSignalKit
import Postbox
import MediaResources
import AppBundle
private var backgroundImageForWallpaper: (TelegramWallpaper, Bool, UIImage)?
@@ -31,7 +32,7 @@ public func chatControllerBackgroundImage(theme: PresentationTheme, wallpaper in
} else {
switch wallpaper {
case .builtin:
if let filePath = frameworkBundle.path(forResource: "ChatWallpaperBuiltin0", ofType: "jpg") {
if let filePath = getAppBundle().path(forResource: "ChatWallpaperBuiltin0", ofType: "jpg") {
backgroundImage = UIImage(contentsOfFile: filePath)?.precomposed()
}
case let .color(color):