mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Temp
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user