Files
divkit/client/ios/Core/CommonCore/ImageRedrawingStyle.swift
T
morevsavva 62ead6a8ee Add blur and tint mode implementation.
Add blur and tint mode implementation
2022-11-14 22:16:48 +03:00

25 lines
553 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
}
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
}
}