mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Temp
This commit is contained in:
12
submodules/TelegramUI/Sources/Weak.swift
Normal file
12
submodules/TelegramUI/Sources/Weak.swift
Normal file
@@ -0,0 +1,12 @@
|
||||
import Foundation
|
||||
|
||||
final class Weak<T: AnyObject> {
|
||||
private weak var _value: T?
|
||||
var value: T? {
|
||||
return self._value
|
||||
}
|
||||
|
||||
init(_ value: T) {
|
||||
self._value = value
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user