mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix ItemListController crash?
This commit is contained in:
@@ -4,3 +4,11 @@ public protocol Identifiable {
|
||||
associatedtype T: Hashable
|
||||
var stableId: T { get }
|
||||
}
|
||||
|
||||
public struct AnyIdentifiable {
|
||||
var stableId: AnyHashable
|
||||
|
||||
public init<T>(_ value: T) where T : Identifiable {
|
||||
self.stableId = value.stableId
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user