Skeleton 0.1.0

Skeleton 0.1.0

DocsDocumented
TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Gonzalo Nunez.


Downloads

Total7,135
Week253
Month982

Installs

Apps29
Apps WeekApps This Week 7
Pod Tries4
Pod Tries WeekPod Tries This Week 1
Test Targets2
Test WeekTests This week 1
powered by Segment

GitHub

Stars147
Watchers7
Forks16
Issues1
Contributors1
Pull Requests0

Code

Files7
SizeIntegration Size 36 kb
LOCLines of Code 132


Skeleton 0.1.0

  • By
  • Gonzalo Nuñez

Skeleton 💀

An easy way to create sliding CAGradientLayer animations! 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! 😅


Overview

In essence, the entire library comes down to just one extension:

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

Everything else is there to help you out and provide convenience! You can check out 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"

Author

Gonzalo Nuñez, [email protected]

License

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