Latest 0.1.3
Homepage https://github.com/1234224576/ScamLoadingView
License MIT
Platforms ios 10.0
Authors

Version
License
Platform

This library can do two things.

  • Displaying a long loading screen despite the processing that ends early.
  • It takes a long time, but it looks as if loading is going at a fast speed.

Usage

let scam = ScamLoadingView(title: "loading...", limitValue: 0.8, arrivalTime: 10.0)

//Show loading View
self.present(scam.loadingViewController, animated: true, completion: nil)

DispatchQueue.global(qos: .default).async {
    //Some processing
    Thread.sleep(forTimeInterval: 3.0)

    DispatchQueue.main.async {
        //Call after you finish processing
        scam.complete {
            scam.loadingViewController.dismiss(animated: true, completion: nil)
        }
    }
}

In this example, regardless of the content of the process, the loading will advance to 80% in 10 seconds.

Requirements

Swift 3.0+

iOS 10.0+

Installation

ScamLoadingView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ScamLoadingView"

Author

[Shuhei Sowa], [[email protected]]

License

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

Latest podspec

{
    "name": "ScamLoadingView",
    "version": "0.1.3",
    "summary": "Display a fake loading screen",
    "description": "Display a fake loading screen.nFor example, it seems that the processing that has already been completed has not yet been completed.nOr, it takes a long time to process But, it seems that loading has completed to 80% in a moment.nYou can do something like this!",
    "homepage": "https://github.com/1234224576/ScamLoadingView",
    "license": "MIT",
    "authors": {
        "Shuhei Sowa": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/1234224576/ScamLoadingView.git",
        "tag": "0.1.3"
    },
    "source_files": "ScamLoadingView/*.{h,swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This