Skip to content

AlvaroOlave/LoadingDots

Repository files navigation

LoadingDots

Simple loading dots view, light and quite configurable.

Simple use example

let dotsView = LoadingDotsView()
dotsView.translatesAutoresizingMaskIntoConstraints = false
addSubview(dotsView)
NSLayoutConstraint.activate([
	dotsView.centerXAnchor.constraint(equalTo: centerXAnchor),
	dotsView.centerYAnchor.constraint(equalTo: centerYAnchor)
])

Configuration options

  • Number of dots
  • Dot radius: Actually, it is the dot diameter.
  • Dot separation: Separation between dots.
  • Colors: Background color of the dots. If the array containts more than one color, a gradient will be added with those colors. If contains one color, no gradient will be created, just the color.
  • Animation: The desired animation from the available options.

Available animations

Opacity

opacity

OpacityWave

opacityWave

Scale

scale

ScaleWave

scaleWave

Bounce

bounce

Pendulum Bounce

bouncePend

About

Loadding dots animation in Swift

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages