Compare commits

...

2 Commits

Author SHA1 Message Date
161f537d0e - fix lint warning 2017-09-11 23:52:43 +02:00
38c37e33e1 - Fix performance in loading Images 2017-09-11 23:50:19 +02:00
2 changed files with 9 additions and 6 deletions

View File

@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'PNTwitterCover'
s.version = '1.0.2'
s.version = '1.0.3'
s.summary = 'PNTwitterCover is a UUIscrollView Category to add blur and zoom during scroll bounce'
# This description is used to generate tags and improve search results.

View File

@ -48,12 +48,15 @@
- (void)prepareForBlurImages
{
CGFloat factor = 0.1;
[_blurImages addObject:self.image];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
CGFloat factor = 0.1;
for (NSUInteger i = 0; i < 20; i++) {
[_blurImages addObject:[self.image boxblurImageWithBlur:factor]];
factor+=0.04;
}
});
}
- (void)setScrollView:(UIScrollView *)scrollView