ocs

OCSkeleton

[OCSkeleton] - Make your loading view a little difference.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

187

Maintenance

Last Commit

1yr ago

Contributors

2

Package

Dependencies

0

License

MIT

Categories

Readme

The library is inspired by Skeleton

Skeleton

👩‍💻 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, xu20121013@gmail.com

License

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100