mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00

git-subtree-dir: submodules/TelegramUI git-subtree-mainline: 5c1613d1048026b9e00a6ce753775cef87eb53fa git-subtree-split: fa3ac0b61a27c8dd3296518a15891a6f9750cbf2
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
|
|
}
|