ATSGProgress is a loader with awesome loading animations.
This library use ATSGProgress to display custom activity indicators.
| Type | Type | Type | Type |
|---|
- BallPulse | 2. BallGridPulse | 3. BallClipRotate | 4. SquareSpin
- BallClipRotatePulse | 6. BallClipRotateMultiple | 7. BallPulseRise | 8. BallRotate
- CubeTransition | 10. BallZigZag | 11. BallZigZagDeflect | 12. BallTrianglePath
- BallScale | 14. LineScale | 15. LineScaleParty | 16. BallScaleMultiple
- BallPulseSync | 18. BallBeat | 19. LineScalePulseOut | 20. LineScalePulseOutRapid
- BallScaleRipple | 22. BallScaleRippleMultiple | 23. BallSpinFadeLoader | 24. LineSpinFadeLoader
- TriangleSkewSpin | 26. Pacman | 27. BallGridBeat | 28. SemiCircleSpin
- BallRotateChase | 30. Orbit | 31. AudioEqualizer
Install Cocoapods if need be.
$ gem install cocoapodsAdd ATSGProgress in your Podfile.
use_frameworks!
pod 'ATSGProgress'Then, run the following command.
$ pod installFirstly, import ATSGProgress.
import ATSGProgressDisplay default loader
ATSGProgress.showLoadingViewWithMessage()
Display default loader with message
ATSGProgress.showLoadingViewWithMessage(msg: "Loading...")
Create custom loader with awesome indicators
// Set styles
ATSGProgress.textColor = UIColor.white
ATSGProgress.backColor = UIColor(colorLiteralRed: 61.0/255.0, green: 172.0/255.0, blue: 227.0/255.0, alpha: 1)
ATSGProgress.backSize = 120
ATSGProgress.backRadius = 8
ATSGProgress.indicatorStyle = IndicatorStyle.blank
ATSGProgress.showLoadingViewWithMessage()
Hide loader
ATSGProgress.dismiss()The MIT License (MIT)
Copyright (c) 2016 Antonio Serrano Gómez @asgapps