Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roytornado/RSLoadingView
Awesome loading animations using 3D engine written with Swift
https://github.com/roytornado/RSLoadingView
activityindicator animation hub loading loading-animations progress progress-view swift
Last synced: 3 months ago
JSON representation
Awesome loading animations using 3D engine written with Swift
- Host: GitHub
- URL: https://github.com/roytornado/RSLoadingView
- Owner: roytornado
- License: mit
- Created: 2017-05-18T09:04:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-26T02:39:32.000Z (over 5 years ago)
- Last Synced: 2024-07-19T04:17:05.796Z (4 months ago)
- Topics: activityindicator, animation, hub, loading, loading-animations, progress, progress-view, swift
- Language: Swift
- Size: 12.2 MB
- Stars: 423
- Watchers: 11
- Forks: 52
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - RSLoadingView - Awesome loading animations using 3D engine written with Swift. (UI / Activity Indicator)
- awesome-cocoa - RSLoadingView
- awesome-ios-star - RSLoadingView - Awesome loading animations using 3D engine written with Swift. (UI / Activity Indicator)
- awesome-swift-lib-hunt - RSLoadingView - Very beautiful and customizable loading indicator library (UI)
- awesome-swift-lib-hunt - RSLoadingView - Very beautiful and customizable loading indicator library (UI)
README
# RSLoadingView
## Introduction
`RSLoadingView` bring your app to the new age of loading animations using 3D engine.
- Written with Swift
- Customizable
- Using Apple's SceneKit with OpenGL
- Include HUB feature: show full screen loading HUB with one line of code
- Or use as standalone view
- Configurable in interface builder## Requirements
- Swift 4.0
- iOS 9+## Demo
SpinAlone - `base` VariantSpinAlone - `base` Variant
SpinAlone - `inAndOut` Variant; speedFactor = 2.0; lifeSpanFactor = 2.0; mainColor = UIColor.red
Twins - `base` Variant
## Installation
RSLoadingView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "RSLoadingView"
```## Usage
```swift
import UIKit
import RSLoadingViewclass ViewController: UIViewController {
@IBAction func showLoadingHub() {
let loadingView = RSLoadingView()
loadingView.show(on: view)
}@IBAction func showOnViewTwins() {
let loadingView = RSLoadingView(effectType: RSLoadingView.Effect.twins)
loadingView.show(on: view)
}func hideLoadingHub() {
RSLoadingView.hide(from: view)
}@IBAction func showOnWindow() {
let loadingView = RSLoadingView()
loadingView.showOnKeyWindow()
}func hideLoadingHubFromKeyWindow() {
RSLoadingView.hideFromKeyWindow()
}
}```
## Supported Effect
| Effect | Variants |
| ------ | ------ |
| RSLoadingSpinAlone | base, inAndOut |
| RSLoadingTwins | base |
| RSLoadingTriples | (coming soon) |## Customization
##### Loading View Related
| Field | Default Value |
| ------ | ------ |
| speedFactor | 1.0 |
| mainColor | UIColor.white |
| colorVariation | 0.0 |
| sizeFactor | 1.0 |
| spreadingFactor | 1.0 |
| lifeSpanFactor | 1.0 |
| variantKey | "" |
##### HUB Related
| Field | Default Value |
| ------ | ------ |
| shouldDimBackground | true |
| dimBackgroundColor | UIColor.black.withAlphaComponent(0.6) |
| isBlocking | true |
| shouldTapToDismiss | false |
| sizeInContainer | CGSize(width: 180, height: 180) |## Author
Roy Ng, [email protected]
@ Redso, https://www.redso.com.hk/Linkedin: https://www.linkedin.com/in/roy-ng-19427735/
## License
RSLoadingView is available under the MIT license. See the LICENSE file for more info.