{"id":16683858,"url":"https://github.com/meniny/dialog","last_synced_at":"2025-04-09T23:25:16.997Z","repository":{"id":56908516,"uuid":"97438286","full_name":"Meniny/Dialog","owner":"Meniny","description":"⚠️A Dialog View for iOS","archived":false,"fork":false,"pushed_at":"2017-07-17T15:46:01.000Z","size":6695,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T10:41:16.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Meniny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-17T05:27:11.000Z","updated_at":"2020-12-19T05:58:30.000Z","dependencies_parsed_at":"2022-08-20T19:50:28.019Z","dependency_job_id":null,"html_url":"https://github.com/Meniny/Dialog","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meniny","download_url":"https://codeload.github.com/Meniny/Dialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127592,"owners_count":21052256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T14:26:51.324Z","updated_at":"2025-04-09T23:25:16.971Z","avatar_url":"https://github.com/Meniny.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./Assets/Dialog.png\" alt=\"Dialog\"\u003e\n  \u003cbr/\u003e\u003ca href=\"https://cocoapods.org/pods/Dialog\"\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0.1-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Author\" src=\"https://img.shields.io/badge/author-Meniny-blue.svg\"\u003e\n  \u003cimg alt=\"Build Passing\" src=\"https://img.shields.io/badge/build-passing-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Swift\" src=\"https://img.shields.io/badge/swift-3.0%2B-orange.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Platforms\" src=\"https://img.shields.io/badge/platform-iOS-lightgrey.svg\"\u003e\n  \u003cimg alt=\"MIT\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Cocoapods\" src=\"https://img.shields.io/badge/cocoapods-compatible-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Carthage\" src=\"https://img.shields.io/badge/carthage-working%20on-red.svg\"\u003e\n  \u003cimg alt=\"SPM\" src=\"https://img.shields.io/badge/swift%20package%20manager-working%20on-red.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## What's this?\n\n`Dialog` is a delightful dialog view for iOS written in Swift.\n\n## Requirements\n\n* iOS 9.0+\n* Xcode 8 with Swift 3\n\n## Preview\n\n![Dialog](./Assets/ScreenShot-Dialog.png)\n\n![Loading](./Assets/ScreenShot-Loading.png)\n\n## Installation\n\n#### CocoaPods\n\n```ruby\npod 'Dialog'\n```\n\n## Contribution\n\nYou are welcome to fork and submit pull requests.\n\n## License\n\n`Dialog` is open-sourced software, licensed under the `MIT` license.\n\n## Samples\n\n#### Minimum Usage\n\n```swift\nlet d = Dialog.alert(title: \"Greetings\", message: \"Hi there! How's going?\")\nd.addAction(title: \"Done\", handler: { (dialog) -\u003e (Void) in\n    dialog.dismiss()\n})\nd.show(in: self)\n```\n\n#### Image \u0026 Actions\n\n```swift\nlet d = Dialog.alert(title: \"Dialog\", message: \"Check out my avatar!\", image: #imageLiteral(resourceName: \"avatar\"))\nd.rightToolStyle = { (button) in\n    button.setImage(#imageLiteral(resourceName: \"share\"), for: .normal)\n    button.tintColor = .lightGray\n    return true\n}\nd.rightToolAction = { (button) in\n    d.addAction(title: \"Done\", handler: { (dialog) -\u003e (Void) in\n        dialog.dismiss()\n    })\n}\nd.addAction(title: \"Add a Button\", handler: { (dialog) -\u003e (Void) in\n    dialog.addAction(title: \"Remove the Last Button\", handler: { (dia) -\u003e (Void) in\n        dialog.removeAction(at: dia.actions.count - 1)\n    })\n})\nd.show(in: self)\n```\n\n#### Loading\n\n```swift\nlet d = Dialog.loading(title: \"Logging in\", message: \"Please wait...\", image: #imageLiteral(resourceName: \"avatar\"))\nd.show(in: self)\nDispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 3, execute: {\n    d.dismiss()\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fdialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeniny%2Fdialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Fdialog/lists"}