blob: 0632ca2679b092fc25a63f503e8443c5b7273ec9 [file] [log] [blame]
{
"name": "PTDAlertViewController",
"version": "1.0.1",
"summary": "PTDAlertViewController is a wrapper around UIalertcontroller that displays Alerts with simple code.",
"description": "PTDAlertViewController is a wrapper around UIalertcontroller that displays Alerts with simple code.\n\nExample Usages\n\n```swift\n// MARK: Message dialogue display with no button.\n\nPTDAlertViewController.showDialog(title: \"title\", message: \"message\")\n//When specifying all arguments\nPTDAlertViewController.showDialog(title: nil, message: \"message\", animated: true, showTime: 1.0)\n\n// MARK: Message dialogue display that displays one button.\n\nPTDAlertViewController.showYesOnlyAlert(title: \"title\", message: \"message\") {\n print(\"Alert Yes button tapped.\")\n}\n//When specifying all arguments\nPTDAlertViewController.showYesOnlyAlert(title: nil, message: \"message\", yesButtonMessage: \"agree\", animated: true) {\n print(\"Alert Yes button tapped.\")\n}\n\n// MARK: Message dialogue display to display two buttons.\nPTDAlertViewController.showYesNoAlert(title: \"title\", message: \"message\") { (isYesTapped) in\n if isYesTapped {\n print(\"Alert Yes button tapped.\")\n } else {\n print(\"Alert No button tapped.\")\n }\n}\n//When specifying all arguments\nPTDAlertViewController.showYesNoAlert(title: nil, message: \"message\", yesButtonMessage: \"done\", noButtonMessage: \"cancel\", animated: true) { (isYesTapped) in\n if isYesTapped {\n print(\"Alert Yes button tapped.\")\n } else {\n print(\"Alert No button tapped.\")\n }\n}\n```",
"homepage": "https://github.com/pontake-dev/PTDAlertViewController",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"pontake-dev": "pontake.dev@gmail.com"
},
"platforms": {
"ios": "8.0"
},
"swift_version": "4.0",
"source": {
"git": "https://github.com/pontake-dev/PTDAlertViewController.git",
"tag": "1.0.1"
},
"source_files": "PTDAlertViewController/**/*.{swift}"
}