From 13e99402301a7841b7a5299b685e2ee9aaf148c3 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Tue, 27 Jan 2026 21:14:08 +0800 Subject: [PATCH] Fix build --- .../GlassControls/Sources/GlassControlGroup.swift | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/submodules/TelegramUI/Components/GlassControls/Sources/GlassControlGroup.swift b/submodules/TelegramUI/Components/GlassControls/Sources/GlassControlGroup.swift index e0774f6085..b39a135a44 100644 --- a/submodules/TelegramUI/Components/GlassControls/Sources/GlassControlGroup.swift +++ b/submodules/TelegramUI/Components/GlassControls/Sources/GlassControlGroup.swift @@ -14,6 +14,7 @@ public final class GlassControlGroupComponent: Component { public enum Content: Equatable { case icon(String) case text(String) + case animation(String) case customIcon(id: AnyHashable, component: AnyComponent) enum Id: Hashable { @@ -29,21 +30,12 @@ public final class GlassControlGroupComponent: Component { return .icon(icon) case let .text(text): return .text(text) + case let .animation(animation): + return .animation(animation) case let .customIcon(id, _): return .customIcon(id) } } - - public func hash(into hasher: inout Hasher) { - switch self { - case let .icon(icon): - icon.hash(into: &hasher) - case let .text(text): - text.hash(into: &hasher) - case let .customIcon(id, _): - id.hash(into: &hasher) - } - } } public let id: AnyHashable