The library is inspired by Skeleton
@interface OCGradientLayer : CAGradientLayer
- (void)slideToDir:(OCDirection)direction animations:(void (^)(CAAnimationGroup *))group;
- (void)stopSliding;
@end
- Make your view confrom to OCGradientsOwner protocol
- Use the API
@interface UIView (OCGradientsOwner)
- (void)slideToDir:(OCDirection)direction animations:(void (^)(CAAnimationGroup *))group;
- (void)stopSliding;
@end
Check out the example for more.
To run the example project, clone the repo, and run pod install
from the Example directory first.
OCSkeleton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'OCSkeleton'
mayqiyue, [email protected]
OCSkeleton is available under the MIT license. See the LICENSE file for more info.