From 73847d1818511be4e1372bfdd8430aa0d911270e Mon Sep 17 00:00:00 2001 From: Tim Broder Date: Tue, 1 Nov 2016 13:29:36 -0400 Subject: [PATCH] Update readme for 1st party progress indicator support From [this merge](https://github.com/rs/SDWebImage/pull/1217/files#diff-2cc725cd4b29e8acd64b4b01e5f82f36R382 "this merge") --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f6c07ba..ea76eda7 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,17 @@ If you don't control the image server you're using, you may not be able to chang ### Add a progress indicator -See this category: https://github.com/JJSaccolo/UIActivityIndicator-for-SDWebImage +Add these before you call ```sd_setImageWithURL``` + +``` objective-c +[imageView setShowActivityIndicatorView:YES]; +[imageView setIndicatorStyle:UIActivityIndicatorViewStyleGray]; +``` + +``` swift +imageView.setShowActivityIndicatorView(true) +imageView.setIndicatorStyle(.Gray) +``` Installation ------------