2 "name": "PTDLoadingViewController",
4 "summary": "PTDLoadingViewController implements a simple code to inform the user during loading.",
5 "description": "PTDAlertViewController is a wrapper around UIalertcontroller that displays Alerts with simple code.\n\n Example Usages\n\n ```swift\n // MARK: covering all screens.\n\nlet loadingView = PTDLoadingViewController.shared\nloadingView.showLoadingIndicatorCoveringAllScreens()\n\n//disappear after 2 seconds.\nDispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {\n //hide indicator\n loadingView.hideLoadingIndicator()\n}\n\n// MARK: above the specified view\n\nlet loadingView = PTDLoadingViewController.shared\nloadingView.showLoadingIndicatorOnView(self.view)\n\n//disappear after 2 seconds.\nDispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {\n //hide indicator\n loadingView.hideLoadingIndicator()\n}\n\n// MARK: cancelable indicator covering all screens\nlet loadingView = PTDLoadingViewController.shared\nloadingView.showCancelableLoadingIndicatorCoveringAllScreens {\n print(\"cancel button tapped\")\n //hide indicator\n loadingView.hideLoadingIndicator()\n}\n\n//disappear after 5.0 seconds.\nDispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {\n //hide indicator\n loadingView.hideLoadingIndicator()\n}\n\n// MARK: cancelable above the specified view\nlet loadingView = PTDLoadingViewController.shared\nloadingView.showCancelableLoadingIndicatorOnView(self.view) {\n print(\"cancel button tapped\")\n //hide indicator\n loadingView.hideLoadingIndicator()\n}\n\n//disappear after 5.0 seconds.\nDispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {\n //hide indicator\n loadingView.hideLoadingIndicator()\n}\n\n// MARK: example of decorating a cancel button\nlet loadingView = PTDLoadingViewController.shared\nloadingView.cancelButton.backgroundColor = UIColor.green\nloadingView.cancelButton.layer.cornerRadius = 5\n//and so on\n ```",
6 "homepage": "https://github.com/pontake-dev/PTDLoadingViewController",
12 "pontake-dev": "pontake.dev@gmail.com"
17 "swift_version": "4.0",
19 "git": "https://github.com/pontake-dev/PTDLoadingViewController.git",
22 "source_files": "PTDLoadingViewController/**/*.{swift}"