Rewrite MetadataPrefsViewController in Swift.
This commit is contained in:
1 parent
ac2cd8807e
commit
62686b8c66
15 files changed
+281
-320
No files matched your search
@@ -13,7 +13,7 @@ public protocol Runnable {
|
||||
func cancel()
|
||||
}
|
||||
|
||||
public protocol CancellableToken {
|
||||
public protocol Cancellable {
|
||||
func cancel()
|
||||
var sessionTask: URLSessionTask? { get set }
|
||||
}
|
||||
@@ -71,10 +71,6 @@ extension String {
|
||||
|
||||
}
|
||||
|
||||
protocol URLSessionTaskDelegate {
|
||||
|
||||
}
|
||||
|
||||
extension URLSession {
|
||||
|
||||
static func data(from url: URL, httpMethod: String = "GET", httpBody: Data? = nil, header: [String:String] = [:], cachePolicy: URLRequest.CachePolicy = URLRequest.CachePolicy.useProtocolCachePolicy) -> Data? {
|
||||
|
||||
Reference in new issue
Block a user