Files
divkit/client/ios/LayoutKit/Interface/CommonHandler.swift
T
2022-10-05 12:42:52 +03:00

22 lines
409 B
Swift

import BaseTiny
@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)):
return lAction == rAction
case (.action, _), (.block, _):
return false
}
}
}