Files
divkit/client/ios/Core/CommonCore/ImageRedrawingStyle.swift
T
akhmetsafin 6108f2f2e7 Fix redrawing after blur radius changed
Fix redrawing after blur radius changed
2022-11-21 18:59:42 +03:00

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