Shimmer - admiral-team/admiralui-ios GitHub Wiki

Class

An element that displays the loading of a row, an element, or an entire block


Declaration

final public class ShimmeringView: UIView, AnyAppThemable

Overview

In the library, the component is presented in three versions, the desired size can be set independently. You can also control the animation cycle by setting public properties of ShimmeringView.

Live example

Configure a ShimmeringView

let cardImageViewShimmerView = ShimmeringView()
cardImageViewShimmerView.start()

Configure animation duration

let cardImageViewShimmerView = ShimmeringView()
cardImageViewShimmerView.shimmerTime = 2.0

Stop animation

let cardImageViewShimmerView = ShimmeringView()
cardImageViewShimmerView.finish()

Contribution

You can help us to find bugs or ask us to add features.

  • To start issue please use ready-made templates.
  • To make changes to the repository, you need to create a fork of the project, make changes to the code and create a pull request in our project. You can read more about this in the Github documentation.