We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ec695 commit d9f0c21Copy full SHA for d9f0c21
BuckoNetworking/Bucko.swift
@@ -10,7 +10,7 @@ import Foundation
10
import Alamofire
11
import SwiftyJSON
12
13
-public protocol BuckoErrorHandler {
+public protocol BuckoErrorHandler: class {
14
func buckoRequest(request: URLRequest, error: Error)
15
}
16
@@ -49,7 +49,7 @@ public struct Bucko {
49
*/
50
public var manager: SessionManager = SessionManager()
51
public static let shared = Bucko()
52
- public var delegate: BuckoErrorHandler?
+ public weak var delegate: BuckoErrorHandler?
53
54
/**
55
Make API requests
0 commit comments