Latest 0.5.0
Homepage https://github.com/mayqiyue/OCSkeleton
License MIT
Platforms ios 9.0
Authors

The library is inspired by Skeleton

Skeleton


OCSkeleton


OCSkeleton


OCSkeleton

OCSkeleton

👩‍💻 Usage

import the OCSkeleton: #import <OCSkeleton.h>

You can use the OCGradientLayer directly:

@interface OCGradientLayer : CAGradientLayer

- (void)slideToDir:(OCDirection)direction animations:(void (^)(CAAnimationGroup *))group;

- (void)stopSliding;

@end

Or you can use the OCGradientContainerView to intergate with autolayout:

  1. Make your view confrom to OCGradientsOwner protocol
  2. Use the API
@interface UIView (OCGradientsOwner)

- (void)slideToDir:(OCDirection)direction animations:(void (^)(CAAnimationGroup *))group;

- (void)stopSliding;

@end

Check out the example for more.

📚 Example

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

🛠 Installation

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

pod 'OCSkeleton'

Author

mayqiyue, [email protected]

License

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

Latest podspec

{
    "name": "OCSkeleton",
    "version": "0.5.0",
    "summary": "[ObjC version] - ud83dudc80 An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/mayqiyue/OCSkeleton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "mayqiyue": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mayqiyue/OCSkeleton.git",
        "tag": "0.5.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "OCSkeleton/Classes/**/*"
}

Pin It on Pinterest

Share This