预期返回“ CacheCallbackCoordinator.State”的函数中缺少返回

时间:2020-05-09 18:42:14

标签: swift kingfisher

更新了我的Podfile,并开始在KingFisherManager中收到此错误。(请帮助)

enter image description here

        set { stateQueue.sync { threadSafeState = newValue } }
        get { stateQueue.sync { threadSafeState } }
    }

    init(shouldWaitForCache: Bool, shouldCacheOriginal: Bool) {
        self.shouldWaitForCache = shouldWaitForCache
        self.shouldCacheOriginal = shouldCacheOriginal
        let stateQueueName = "com.onevcat.Kingfisher.CacheCallbackCoordinator.stateQueue.\(UUID().uuidString)"
        self.stateQueue = DispatchQueue(label: stateQueueName)
    }

    func apply(_ action: Action, trigger: () -> Void) {
        switch (state, action) {
        case (.done, _):
            break```

0 个答案:

没有答案