Fix build

This commit is contained in:
Isaac 2026-01-27 21:14:08 +08:00
parent 9af8018ac6
commit 13e9940230

View file

@ -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