UIView+Shimmer is a super-lightweight category that adds a shimmering effect to any UIView, without the need for wrappers, nor layout and touch-handling voodoo.
For example, to make any UILabel
instance shimmer:
[label startShimmering];
And to make it stop:
[label stopShimmering];
Install via Cocoapods. Here's a sample Podfile
:
pod 'UIView+Shimmer'
Alternatively, just drop the two files (UIView+Shimmer.m
and UIView+Shimmer.h
) into your project tree.
Vikram Kriplaney
UIView+Shimmer is available under the MIT license. See the LICENSE file for more info.