- Notifications
You must be signed in to change notification settings - Fork50
Awesome loading animations using 3D engine written with Swift
License
roytornado/RSLoadingView
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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
- Swift 4.0
- iOS 9+
SpinAlone -base Variant
SpinAlone -base Variant
SpinAlone -inAndOut Variant; speedFactor = 2.0; lifeSpanFactor = 2.0; mainColor = UIColor.red
Twins -base Variant
RSLoadingView is available throughCocoaPods. To installit, simply add the following line to your Podfile:
pod"RSLoadingView"
import UIKitimport RSLoadingViewclassViewController:UIViewController{@IBActionfunc showLoadingHub(){letloadingView=RSLoadingView() loadingView.show(on: view)}@IBActionfunc showOnViewTwins(){letloadingView=RSLoadingView(effectType:RSLoadingView.Effect.twins) loadingView.show(on: view)}func hideLoadingHub(){RSLoadingView.hide(from: view)}@IBActionfunc showOnWindow(){letloadingView=RSLoadingView() loadingView.showOnKeyWindow()}func hideLoadingHubFromKeyWindow(){RSLoadingView.hideFromKeyWindow()}}
| Effect | Variants |
|---|---|
| RSLoadingSpinAlone | base, inAndOut |
| RSLoadingTwins | base |
| RSLoadingTriples | (coming soon) |
| Field | Default Value |
|---|---|
| speedFactor | 1.0 |
| mainColor | UIColor.white |
| colorVariation | 0.0 |
| sizeFactor | 1.0 |
| spreadingFactor | 1.0 |
| lifeSpanFactor | 1.0 |
| variantKey | "" |
| Field | Default Value |
|---|---|
| shouldDimBackground | true |
| dimBackgroundColor | UIColor.black.withAlphaComponent(0.6) |
| isBlocking | true |
| shouldTapToDismiss | false |
| sizeInContainer | CGSize(width: 180, height: 180) |
Roy Ng,roytornado@gmail.com@ Redso,https://www.redso.com.hk/
Linkedin:https://www.linkedin.com/in/roy-ng-19427735/
RSLoadingView is available under the MIT license. See the LICENSE file for more info.
About
Awesome loading animations using 3D engine written with Swift
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.



