Files
divkit/client/ios/LayoutKit/Interface/CommonHandler.swift
T
pkurchatov 6d4e785be4 Applied Swift 5.9 format
7efc9a489061fda48036f567437a3d692591ff4a
2024-02-27 10:59:51 +03:00

22 lines
401 B
Swift

import BaseTinyPublic
@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
}
}
}