Files
divkit/client/ios/Core/CommonCorePublic/ImageRedrawingStyle.swift
T
2023-03-28 12:17:21 +03:00

26 lines
595 B
Swift

// Copyright 2022 Yandex LLC. All rights reserved.
import BaseUIPublic
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
}
}