iOS/Sources/App/Utilities/Extensions/NSURL+QueryDictionary.swift
mat1th 9bbfbaad5c
Move test classes to test main folder; (#2807)
## Summary
This pr does move test files to the test folder of the project.

## Screenshots
NA

## Link to pull request in Documentation repository
-

## Any other notes
-
2024-06-07 11:06:20 +02:00

14 lines
371 B
Swift

import Foundation
extension URL {
var queryItems: [String: String]? {
var params = [String: String]()
return URLComponents(url: self, resolvingAgainstBaseURL: false)?
.queryItems?
.reduce([:], { _, item -> [String: String] in
params[item.name] = item.value
return params
})
}
}