Skip to content

A collection of pre-loader animations written in Swift to be used with iOS Applications.

License

Notifications You must be signed in to change notification settings

Thisura98/HKPreloaders

Repository files navigation

HKPreloaders

Example Gif

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.

  1. Morphing Animation - HKMorphingPreloaderView
  2. Spinning/growing Animation - HKSpinningPreloaderView

Requirements

  • iOS 8.0+

  • Swift 5.0

  • XCODE 10.2

Installation

Cocoapods

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'

Example

Storyobards

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!

In-code

TODO: Support is currently being added for in-code initialization!

Thisura98, thisura1998@gmail.com

About

A collection of pre-loader animations written in Swift to be used with iOS Applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published