Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gonzalonunez/Skeleton
✨ An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.
https://github.com/gonzalonunez/Skeleton
gradients ios loader loading-animations skeleton skeleton-screen slide-animation swift
Last synced: 7 days ago
JSON representation
✨ An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content.
- Host: GitHub
- URL: https://github.com/gonzalonunez/Skeleton
- Owner: gonzalonunez
- License: mit
- Created: 2017-02-16T00:49:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-20T19:03:47.000Z (about 3 years ago)
- Last Synced: 2024-04-24T14:46:44.475Z (8 months ago)
- Topics: gradients, ios, loader, loading-animations, skeleton, skeleton-screen, slide-animation, swift
- Language: Swift
- Homepage:
- Size: 394 KB
- Stars: 678
- Watchers: 15
- Forks: 77
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - Skeleton - An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content. (UI / Activity Indicator)
- awesome-gradient - Skeleton - An easy way to create sliding CAGradientLayer animations. (Swift)
- awesome-ios - Skeleton
- awesome-ios-star - Skeleton - An easy way to create sliding CAGradientLayer animations! Works great for creating skeleton screens for loading content. (UI / Activity Indicator)
README
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:
```swift
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](http://www.gonzalonunez.me/Skeleton/) 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](http://cocoapods.org). To install it, simply add the following line to your Podfile:
```ruby
pod "Skeleton"
```Skeleton is also available through [Carthage](https://github.com/Carthage/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.