mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Remove AppAuth and prepare for Rust OIDC. (#870)
This commit is contained in:
@@ -24,4 +24,9 @@ extension Dictionary {
|
||||
}
|
||||
return String(data: data, encoding: .utf8)
|
||||
}
|
||||
|
||||
/// Returns a dictionary containing the original values keyed by the results of mapping the given closure over its keys.
|
||||
func mapKeys<T>(_ transform: (Key) -> T) -> [T: Value] {
|
||||
.init(map { (transform($0.key), $0.value) }) { first, _ in first }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user