Giter Site home page Giter Site logo

mayqiyue / ocskeleton Goto Github PK

View Code? Open in Web Editor NEW
187.0 4.0 51.0 421 KB

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

License: MIT License

Objective-C 85.60% Ruby 9.75% Shell 4.65%
skeleton placeholder loader obje objective-c gradient loading-animations

ocskeleton's Introduction

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, [email protected]

License

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

ocskeleton's People

Contributors

mayqiyue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ocskeleton's Issues

suggestion

Thank you very much for developing an OC version of skeleton. I would like to make a suggestion here. Can I make my avatar have a low light effect?

README

Hey! Awesome work making an Objective-C version of the library. Do you think maybe you can change the README a bit to differentiate it from mine? Just seems a bit weird to me that they're virtually identical ๐Ÿ˜…

When to use๏ผŸ

I want to know when it should be used and when it should be closed. I don't know if I can write a demo.

Xcode warning for unused funciton

For OCSkeleton version 0.5.0 distributed via CocoaPods
Xcode warns that the transitionMaker function defined in OCSkeletonDefines.h is unsed:
warning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.