mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -46,9 +46,10 @@ public final class Image: Component {
|
||||
|
||||
func update(component: Image, availableSize: CGSize, environment: Environment<Empty>, transition: Transition) -> CGSize {
|
||||
self.image = component.image
|
||||
self.tintColor = component.tintColor
|
||||
self.contentMode = component.contentMode
|
||||
|
||||
transition.setTintColor(view: self, color: component.tintColor ?? .white)
|
||||
|
||||
return component.size ?? availableSize
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user