A set of preloader animations written in Swift. The animations utilize CAKeyframeAnimation
objects and the views for the preloaders are instantiated from the .xib
files. The following animation classes are provided.
- Morphing Animation -
HKMorphingPreloaderView
- Spinning/growing Animation -
HKSpinningPreloaderView
-
iOS 8.0+
-
Swift 5.0
-
XCODE 10.2
HKPreloaders is not yet published to cocoapods, but you can still add the following to your Podfile
to use it in your iOS project. Simply add the line and run pod install
.
pod 'HKPreloaders', :git => 'https://github.com/Thisura98/HKPreloaders.git'
Simply create a new UIView
, and change it's class to one of the Animation classes. Create a reference to the views on your class files. All animation classes implement the .show()
and .hide()
methods. Use these methods to control the visibility of the animations!
TODO: Support is currently being added for in-code initialization!
Thisura98, thisura1998@gmail.com