Swiftpack.co -  gonzalonunez/Skeleton as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
gonzalonunez/Skeleton
πŸ’€ An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.
.package(url: "https://github.com/gonzalonunez/Skeleton.git", from: "0.5.1")

Skeleton

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

πŸ“„ License

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

GitHub

link
Stars: 601
Last commit: 6 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Xcode 12.5
6 weeks ago

Fixed a warning related to AnyObject.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API