|
@@ -10,6 +10,7 @@ import UIKit
|
|
|
import RxSwift
|
|
|
import SwiftyJSON
|
|
|
import Photos
|
|
|
+import Kingfisher
|
|
|
|
|
|
@objc(PublishMediaType)
|
|
|
enum PublishMediaType: Int {
|
|
@@ -25,6 +26,8 @@ class PublishEditController: BaseViewController {
|
|
|
|
|
|
override func didReceiveMemoryWarning() {
|
|
|
super.didReceiveMemoryWarning()
|
|
|
+ KingfisherManager.shared.cache.clearDiskCache()
|
|
|
+ KingfisherManager.shared.cache.clearMemoryCache()
|
|
|
}
|
|
|
|
|
|
@objc var mediaType: PublishMediaType = .image
|