| { |
| "name": "PTDLoadingViewController", |
| "version": "1.0.0", |
| "summary": "PTDLoadingViewController implements a simple code to inform the user during loading.", |
| "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 ```", |
| "homepage": "https://github.com/pontake-dev/PTDLoadingViewController", |
| "license": { |
| "type": "MIT", |
| "file": "LICENSE" |
| }, |
| "authors": { |
| "pontake-dev": "pontake.dev@gmail.com" |
| }, |
| "platforms": { |
| "ios": "9.0" |
| }, |
| "swift_version": "4.0", |
| "source": { |
| "git": "https://github.com/pontake-dev/PTDLoadingViewController.git", |
| "tag": "1.0.0" |
| }, |
| "source_files": "PTDLoadingViewController/**/*.{swift}" |
| } |