Skeleton is easy way to create sliding CAGradientLayer animations! It works great for creating skeleton screens for loading content. I plan on expanding this library with functionality that allows easily converting a regular UITableViewCell or UICollectionViewCell to it’s skeleton screen equivalent, hence the name Skeleton. I just haven’t figured out exactly how I want to do that yet!

👩‍💻 Usage

The entire library comes down to just one public-facing extension:

public extension CAGradientLayer {
  public func slide(to dir: Direction, group: ((CAAnimationGroup) -> Void) = { _ in })
  public func stopSliding()

With a bit of set up, you can get something like this:

You can check out the example and the documentation for more.

📚 Example

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

🛠 Installation

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

pod "Skeleton"

Skeleton is also available through Carthage. Add this to your Cartfile:

github "gonzalonunez/Skeleton" ~> 0.2.1

📄 License

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