mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
526 B
Swift
21 lines
526 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
extension SessionCell {
|
|
struct ExtraAction: Hashable, Equatable {
|
|
let title: String
|
|
let onTap: (() -> Void)
|
|
|
|
// MARK: - Conformance
|
|
|
|
public func hash(into hasher: inout Hasher) {
|
|
title.hash(into: &hasher)
|
|
}
|
|
|
|
static func == (lhs: SessionCell.ExtraAction, rhs: SessionCell.ExtraAction) -> Bool {
|
|
return (lhs.title == rhs.title)
|
|
}
|
|
}
|
|
}
|