Committed by
GitHub
Update readme for 1st party progress indicator support
From [this merge](https://github.com/rs/SDWebImage/pull/1217/files#diff-2cc725cd4b29e8acd64b4b01e5f82f36R382 "this merge")
Showing
1 changed file
with
11 additions
and
1 deletions
@@ -119,7 +119,17 @@ If you don't control the image server you're using, you may not be able to chang | @@ -119,7 +119,17 @@ If you don't control the image server you're using, you may not be able to chang | ||
119 | 119 | ||
120 | ### Add a progress indicator | 120 | ### Add a progress indicator |
121 | 121 | ||
122 | -See this category: https://github.com/JJSaccolo/UIActivityIndicator-for-SDWebImage | 122 | +Add these before you call ```sd_setImageWithURL``` |
123 | + | ||
124 | +``` objective-c | ||
125 | +[imageView setShowActivityIndicatorView:YES]; | ||
126 | +[imageView setIndicatorStyle:UIActivityIndicatorViewStyleGray]; | ||
127 | +``` | ||
128 | + | ||
129 | +``` swift | ||
130 | +imageView.setShowActivityIndicatorView(true) | ||
131 | +imageView.setIndicatorStyle(.Gray) | ||
132 | +``` | ||
123 | 133 | ||
124 | Installation | 134 | Installation |
125 | ------------ | 135 | ------------ |
-
Please register or login to post a comment