Skip to content

Shimmer Effect

Platform Language License

Overview

  • Easy customization
  • Swift 5.0 above
  • Xcode 11 above
  • Customizable colors, animation speed
  • Manual drag & drop the class
  • iPhone/iPad support

Demo:

Demo

Workflow

  • Import UIView+ShimmerEffect.swift into you project
  • Use the below line of code to add shimmer easily to any UIImageView,UILabel,UIButton, UIView.
testLbl.shimmerEffectView()

imageView.shimmerEffectView()

  • If you need to change the color of shimmer, you can easily customize the colors usings gradientBackground & gradientBackgroundMove.
  • Shimmers can be used for loading purposes such as while we receive data from the API or something releated to data loading.
  • After all is done, we can remove the shimmer by using the below code.
testLbl.shimmerStopAnimate()
imageView.shimmerStopAnimate()

Download the file here

UIView+ShimmerEffect.swift

Github

License

UIView+ShimmerEffect is distributed under the MIT license .


Let's grow together 🌱

Cheers 🍻