Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.54 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.54 KB

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