Fix profile gift cover pattern color

This commit is contained in:
Ilya Laktyushin 2025-01-23 14:31:30 +04:00
parent 0485aed646
commit 7b441c74f4

View File

@ -457,7 +457,7 @@ public final class PeerInfoCoverComponent: Component {
]
} else if case let .status(status) = component.subject, case let .starGift(_, _, _, _, _, _, _, patternColorValue, _) = status.content {
let patternColor = UIColor(rgb: UInt32(bitPattern: patternColorValue))
self.avatarBackgroundPatternContentsLayer.compositingFilter = "overlayBlendMode"
self.avatarBackgroundPatternContentsLayer.compositingFilter = nil
self.avatarBackgroundPatternContentsLayer.colors = [
patternColor.withAlphaComponent(0.6).cgColor,
patternColor.withAlphaComponent(0.0).cgColor