mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various Improvements
This commit is contained in:
@@ -305,9 +305,15 @@ private class RecentSessionScreenNode: ViewControllerTracingNode, UIScrollViewDe
|
||||
location = session.country
|
||||
ip = session.ip
|
||||
|
||||
let (icon, backgroundColor, animationName, colors) = iconForSession(session)
|
||||
let (icon, backgroundColor, animationName, colorsArray) = iconForSession(session)
|
||||
if let animationName = animationName {
|
||||
let animationNode = AnimationNode(animation: animationName, colors: colors ?? ["apple.apple.Заливка 1": backgroundColor ?? .black], scale: 1.0)
|
||||
var colors: [String: UIColor] = [:]
|
||||
if let colorsArray = colorsArray {
|
||||
for color in colorsArray {
|
||||
colors[color] = backgroundColor
|
||||
}
|
||||
}
|
||||
let animationNode = AnimationNode(animation: animationName, colors: colors, scale: 1.0)
|
||||
self.animationNode = animationNode
|
||||
|
||||
animationNode.animationView()?.logHierarchyKeypaths()
|
||||
|
||||
Reference in New Issue
Block a user