An easy way to add a shimmering effect to any view with just single line of code. It is useful as an unobtrusive loading indicator. This is a network request waiting for the framework, the framework to increase the dynamic effect, convenient and fast, a line of code can be used.
For demo:
$ pod try LoadingShimmer
To run the example project, clone the repo, and run pod install
from the Example directory first.
$ cd Example
$ pod install
If you don't have CocoaPods installed, grab it with [sudo] gem install cocoapods
.
$ open LoadingShimmer.xcworkspace
- iOS 10.0 or later
- Swift 5+
- Xcode 10+
LoadingShimmer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LoadingShimmer'
Just drag the LoadingShimmer.swift
files into your project.
Start Covering Loading -
LoadingShimmer.startCovering(view)
Stop Covering Loading -
LoadingShimmer.stopCovering(view)
Don't forget to import LoadingShimmer
Jogendra Singh |
The pod is inspired by DWLoadingShimmer
LoadingShimmer is available under the MIT license. See the LICENSE file for more info.