mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
12 lines
294 B
Swift
12 lines
294 B
Swift
import Foundation
|
|
import TelegramCore
|
|
|
|
func findValue(_ values: [SecureIdValueWithContext], key: SecureIdValueKey) -> (Int, SecureIdValueWithContext)? {
|
|
for i in 0 ..< values.count {
|
|
if values[i].value.key == key {
|
|
return (i, values[i])
|
|
}
|
|
}
|
|
return nil
|
|
}
|