Browse Source

Merge pull request #1421 from mattlogan/patch-1

Fix DownsamplingImageProcessor example
Wei Wang 5 years ago
parent
commit
bfd4c1c476
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -68,7 +68,7 @@ With the powerful options, you can do hard tasks with Kingfisher in a simple way
 
 ```swift
 let url = URL(string: "https://example.com/high_resolution_image.png")
-let processor = DownsamplingImageProcessor(size: imageView.size)
+let processor = DownsamplingImageProcessor(size: imageView.bounds.size)
              >> RoundCornerImageProcessor(cornerRadius: 20)
 imageView.kf.indicatorType = .activity
 imageView.kf.setImage(