Dark Mode And Light Mode
EasySkeletonView
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
EasySkeletonView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'EasySkeletonView'
Here is the full process to use this library. It's just simple. Just follow below's quote.
Import this library on your file.
import EasySkeletonView
Decleare a variable where you want to show.
var skeletonView : EasySkeletonView?
Init with view where you want to show this skeleton and set the style of the skeleton.
skeletonView = EasySkeletonView(on: self.skView, style: .listWithCircularImage)
What would be height of each list. Default value is 90
skeletonView?.eachItemHeight = 90
What would be the spped of gradient movement. Default value is 1
skeletonView?.gradientSpeed = 0.7
What will be the gap of each list. Default value is 0.
skeletonView?.gapOfList = 0
When you show line right side of circle or box then how many lines you want to show.Default value is 3
skeletonView?.numberOfLines = 3
Number of list you want to show. Default is max number base your providing item height.
skeletonView?.numOfList = 10
Show your animation
skeletonView?.startAnimating()
Stop showing your skeleton
self.skeletonView?.stopAnimating()
Author
Avijit Babu, [email protected]
License
EasySkeletonView is available under the MIT license. See the LICENSE file for more info.