Files
denlvovich e001d74afe Update to VGSL6.0
4f8b5f480ade3f347d5f0a2d01a1618069bcb846
2024-07-12 20:33:42 +03:00

22 lines
391 B
Swift

import VGSL
@frozen
public enum CommonHandler {
case action(UserInterfaceAction)
case block(Action)
}
extension CommonHandler: Equatable {
public static func ==(
lhs: CommonHandler,
rhs: CommonHandler
) -> Bool {
switch (lhs, rhs) {
case let (.action(lAction), .action(rAction)):
lAction == rAction
case (.action, _), (.block, _):
false
}
}
}