Explorar o código

Give SessionDelegate an ObjC name

onevcat %!s(int64=5) %!d(string=hai) anos
pai
achega
0d666f2a6d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Sources/Networking/SessionDelegate.swift

+ 1 - 0
Sources/Networking/SessionDelegate.swift

@@ -27,6 +27,7 @@
 import Foundation
 import Foundation
 
 
 // Represents the delegate object of downloader session. It also behave like a task manager for downloading.
 // Represents the delegate object of downloader session. It also behave like a task manager for downloading.
+@objc(KFSessionDelegate) // Fix for ObjC header name conflicting. https://github.com/onevcat/Kingfisher/issues/1530
 class SessionDelegate: NSObject {
 class SessionDelegate: NSObject {
 
 
     typealias SessionChallengeFunc = (
     typealias SessionChallengeFunc = (