Skip to content
πŸ’€ An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Skeleton Swift 4.2 Oct 25, 2018


Skeleton is an easy way to create sliding CAGradientLayer animations! It works great for creating skeleton screens:

πŸ‘©β€πŸ’» 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()

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.3.1

πŸ“„ License

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

You can’t perform that action at this time.