19

GitHub - jogendra/LoadingShimmer: An easy way to add a shimmering effect to any...

 4 years ago
source link: https://github.com/jogendra/LoadingShimmer
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

LoadingShimmer

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.

CI Status Version License Platform

demo.gif

tableDemo.gif

Demo/Example

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

Requirements

  • iOS 10.0 or later
  • Swift 5+
  • Xcode 10+

Installation

CocoaPods

LoadingShimmer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LoadingShimmer'

Manual Installation

Just drag the LoadingShimmer.swift files into your project.

Usage

Start Covering Loading -

LoadingShimmer.startCovering(view)

Stop Covering Loading -

LoadingShimmer.stopCovering(view)

Don't forget to import LoadingShimmer

Author

20956124?s=400&u=01fab3fc9bb3d2ee799e314d3fe23c54d1deeb07&v=4

Jogendra Singh

687474703a2f2f7777772e69636f6e6e696e6a612e636f6d2f66696c65732f3234312f3832352f3231312f726f756e642d636f6c6c61626f726174696f6e2d736f6369616c2d6769746875622d636f64652d636972636c652d6e6574776f726b2d69636f6e2e737667 68747470733a2f2f7777772e736861726569636f6e2e6e65742f646f776e6c6f61642f323031362f30372f30362f3130373131355f6d656469612e737667 687474703a2f2f7777772e69636f6e6e696e6a612e636f6d2f66696c65732f3836332f3630372f3735312f6e6574776f726b2d6c696e6b6564696e2d736f6369616c2d636f6e6e656374696f6e2d63697263756c61722d636972636c652d6d656469612d69636f6e2e737667

The pod is inspired by DWLoadingShimmer

License

LoadingShimmer is available under the MIT license. See the LICENSE file for more info.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK