mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
21 lines
330 B
Swift
21 lines
330 B
Swift
//
|
|
// IdentifiableByHash.swift
|
|
// Multisig
|
|
//
|
|
// Created by Dmitry Bespalov on 13.05.20.
|
|
// Copyright © 2020 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
|
|
struct IdentifiableByHash<T>: Identifiable where T: Hashable {
|
|
|
|
var value: T
|
|
|
|
init(_ value: T) {
|
|
self.value = value
|
|
}
|
|
|
|
var id: Int { value.hashValue }
|
|
|
|
}
|