Latest 1.1
Homepage https://github.com/ahmed93/AAShimmerView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Demo

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 8.0+
  • Swift 3.0

Installation

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

pod "AAShimmerView"

Usage

First thing to do is to import AAShimmerView

import AAShimmerView

Then just do what ever you want

containerView.aaShimmerSubViews = [label1, label2, label3, label4, imageView]
containerView.startShimmering()

More Customizations

ShimmerView Height:

By default this value is set to the original view height

label1.aaShimmerHeight = label1.frame.height/2
label2.aaShimmerHeight = label2.frame.height/2
label3.aaShimmerHeight = label3.frame.height/2
label4.aaShimmerHeight = label4.frame.height/2

ShimmerView Vertical Alignment:

ShimmerViewAlignment is either ‘.top’, ‘.center’ or ‘.bottom’. This is by default is set to ‘.center’

label3.aashimmerVerticalAlignment = .top
label4.aashimmerVerticalAlignment = .bottom

ShimmerView Gradient Colors:

aashimmerColors is a list of colors that is applied on the rootView. Default value is [.lightGray , .white]

containerView.aashimmerColors = [UIColor.red, UIColor.green]

Contributing

Issues and pull requests are welcome!

Author

Ahmed Mohamed Magdi, [email protected]

License

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

Latest podspec

{
    "name": "AAShimmerView",
    "version": "1.1",
    "summary": "AAShimmerView aims to bring Facebook loading Views to all apps",
    "description": "A quick way to present the user with loading indicator without blocking the user UI. AAShimmerView aims to enhance the User experince when waiting the API requests to finish. AAShimmerView is inspired from Facebook.",
    "homepage": "https://github.com/ahmed93/AAShimmerView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ahmed Mohamed Magdi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ahmed93/AAShimmerView.git",
        "tag": "1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "AAShimmerView/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This