Category - Swift

SDWebImageメモ

// 500MB
SDImageCache.shared().maxCacheSize = UInt(500 * 1024 * 1024) SDImageCache.shared().maxCacheSize = UInt(500 * 1024 * 1024)
// キャッシュにクエリパラメータをファイル名に含めないようにする
SDWebImageManager.shared().cacheKeyFilter = { url in
if let scheme = url?.scheme, let host = url?.host, let path = url?.path {
return "\(scheme)://\(host)\(path)"
}
return url?.absoluteString
}

read more

Recent entry

Search

Tag Cloud

Page Top