mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix build
This commit is contained in:
parent
9af8018ac6
commit
13e9940230
1 changed files with 3 additions and 11 deletions
|
|
@ -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<Empty>)
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue