mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
6108f2f2e7
Fix redrawing after blur radius changed
26 lines
589 B
Swift
26 lines
589 B
Swift
// Copyright 2022 Yandex LLC. All rights reserved.
|
|
|
|
import BaseUI
|
|
|
|
public struct ImageRedrawingStyle: Equatable {
|
|
public static func ==(lhs: ImageRedrawingStyle, rhs: ImageRedrawingStyle) -> Bool {
|
|
lhs.tintColor == rhs.tintColor &&
|
|
lhs.tintMode == rhs.tintMode &&
|
|
lhs.effects == rhs.effects
|
|
}
|
|
|
|
let tintColor: Color?
|
|
let tintMode: TintMode?
|
|
let effects: [ImageEffect]
|
|
|
|
public init(
|
|
tintColor: Color?,
|
|
tintMode: TintMode? = nil,
|
|
effects: [ImageEffect]
|
|
) {
|
|
self.tintColor = tintColor
|
|
self.tintMode = tintMode
|
|
self.effects = effects
|
|
}
|
|
}
|