Rewrite MetadataPrefsViewController in Swift.

This commit is contained in:
Damiano Galassi committed 2017-08-13 07:37:01 +02:00
1 parent ac2cd8807e
commit 62686b8c66
15 files changed
+281 -320

No files matched your search

+1 -5
View File
@@ -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? {