From e6a661d0bb221414ac8994c49b1c1846493ead3b Mon Sep 17 00:00:00 2001
From: onevcat <onevcat@gmail.com>
Date: Fri, 2 Jun 2017 15:18:11 +0900
Subject: [PATCH] =?UTF-8?q?Consider=20manager=E2=80=99s=20downloader=20and?=
 =?UTF-8?q?=20cache=20in=20default?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Sources/KingfisherManager.swift | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Sources/KingfisherManager.swift b/Sources/KingfisherManager.swift
index 6b5cab699..2b7a50c09 100755
--- a/Sources/KingfisherManager.swift
+++ b/Sources/KingfisherManager.swift
@@ -88,6 +88,10 @@ public class KingfisherManager {
     /// - Note: This option will not be applied to independent using of `ImageDownloader` or `ImageCache`.
     public var defaultOptions = KingfisherEmptyOptionsInfo
     
+    var currentDefaultOptions: KingfisherOptionsInfo {
+        return [.downloader(downloader), .targetCache(cache)] + defaultOptions
+    }
+    
     convenience init() {
         self.init(downloader: .default, cache: .default)
     }
@@ -117,7 +121,7 @@ public class KingfisherManager {
         completionHandler: CompletionHandler?) -> RetrieveImageTask
     {
         let task = RetrieveImageTask()
-        let options = defaultOptions + (options ?? KingfisherEmptyOptionsInfo)
+        let options = currentDefaultOptions + (options ?? KingfisherEmptyOptionsInfo)
         if options.forceRefresh {
             _ = downloadAndCacheImage(
                 with: resource.downloadURL,