Various improvements

This commit is contained in:
Ilya Laktyushin
2023-10-12 14:02:36 +04:00
parent 0f0b14833f
commit b80f2636d6
17 changed files with 669 additions and 66 deletions

View File

@@ -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
}
}