{"id":30044602,"url":"https://github.com/incetro/message","last_synced_at":"2025-08-07T06:43:25.599Z","repository":{"id":48246830,"uuid":"96751956","full_name":"Incetro/Message","owner":"Incetro","description":"A simple and useful wrapper for showing information messages","archived":false,"fork":false,"pushed_at":"2021-08-04T11:40:57.000Z","size":253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-18T12:50:52.719Z","etag":null,"topics":["alert","ios","message","swift","uialertcontroller"],"latest_commit_sha":null,"homepage":null,"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/Incetro.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-10T08:04:41.000Z","updated_at":"2021-08-04T11:31:31.000Z","dependencies_parsed_at":"2022-08-21T00:40:27.885Z","dependency_job_id":null,"html_url":"https://github.com/Incetro/Message","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/Incetro/Message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incetro%2FMessage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incetro%2FMessage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incetro%2FMessage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incetro%2FMessage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Incetro","download_url":"https://codeload.github.com/Incetro/Message/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Incetro%2FMessage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269213690,"owners_count":24379497,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alert","ios","message","swift","uialertcontroller"],"created_at":"2025-08-07T06:43:21.288Z","updated_at":"2025-08-07T06:43:25.573Z","avatar_url":"https://github.com/Incetro.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](message.png)\n\n[![Build Status](https://travis-ci.org/incetro/Message.svg?branch=master)](https://travis-ci.org/incetro/Message)\n[![CocoaPods](https://img.shields.io/cocoapods/v/Message.svg)](https://img.shields.io/cocoapods/v/Message.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/incetro/Message/master/LICENSE.md)\n[![Platforms](https://img.shields.io/cocoapods/p/Message.svg)](https://cocoapods.org/pods/Message)\n\nMessage is a framework written in Swift that makes it easy for you to show your informational messages\n\n- [Features](#features)\n- [Usage](#usage)\n- [Requirements](#requirements)\n- [Communication](#communication)\n- [Installation](#installation)\n- [Author](#author)\n- [License](#license)\n\n## Features\n- [x] Standard alert with text fields and buttons\n- [x] Standard action sheet with buttons\n- [x] Delegation\n- [ ] Dropdown message\n\n## Usage\n### Simple Alert\n```swift\nAlert(withTitle: \"Title\", message: \"Your message\").addTextField { textField in\n                \n    textField.placeholder = \"Placeholder\"\n}\n            \n.addButton(withTitle: \"Ok\")\n            \n.addCancelButton(withTitle: \"Close\")\n            \n.show()\n```\n### Simple ActionSheet\n```swift\nActionSheet(withTitle: \"Title\", message: \"Your message\")\n            \n.addButton(withTitle: \"Ok\")\n            \n.addCancelButton(withTitle: \"Cancel\")\n            \n.addDestructiveButton(withTitle: \"Destructive\")\n            \n.show()\n```\n### Using delegate\n```swift\nclass ViewController: UIViewController {\n\n    override func viewDidLoad() {\n        \n        super.viewDidLoad()\n        \n        Alert(withTitle: \"Title\", message: \"Your message\").addTextField { textField in\n                \n            textField.placeholder = \"Placeholder\"\n        }\n            \n        .addButton(withTitle: \"Ok\")\n            \n        .addCancelButton(withTitle: \"Close\")\n            \n        .show(withDelegate: self)\n    }\n}\n\nextension ViewController: AlertDelegate {\n    \n    func willShow(_ alert: AlertProtocol) {\n           \n    }\n    \n    func didShow(_ alert: AlertProtocol) {\n        \n    }\n    \n    func willDisappear(_ alert: AlertProtocol) {\n        \n    }\n    \n    func didDisappear(_ alert: AlertProtocol) {\n        \n    }\n}\n```\n### Advanced usage\n```swift\nAlert(withMessage: \"Message\").addButton(withTitle: \"Ok\").show(after: 1.0)\n        \nAlert(withMessage: \"Message\").show(andCloseAfter: 2.0)\n        \nAlert(withMessage: \"Message\").show(after: 1.0, andCloseAfter: 2.0)\n```\n## Requirements\n- iOS 8.0+\n- Xcode 8.1, 8.2, 8.3, and 9.0\n- Swift 3.0, 3.1, 3.2, and 4.0\n\n## Communication\n\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nTo integrate Message into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nuse_frameworks!\n\ntarget \"\u003cYour Target Name\u003e\" do\n    pod \"Message\"\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Manually\n\nIf you prefer not to use any dependency managers, you can integrate Message into your project manually.\n\n#### Embedded Framework\n\n- Open up Terminal, `cd` into your top-level project directory, and run the following command \"if\" your project is not initialized as a git repository:\n\n  ```bash\n  $ git init\n  ```\n\n- Add Message as a git [submodule](http://git-scm.com/docs/git-submodule) by running the following command:\n\n  ```bash\n  $ git submodule add https://github.com/incetro/Message.git\n  ```\n\n- Open the new `Message` folder, and drag the `Message.xcodeproj` into the Project Navigator of your application's Xcode project.\n\n    \u003e It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.\n\n- Select the `Message.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target.\n- Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the \"Targets\" heading in the sidebar.\n- In the tab bar at the top of that window, open the \"General\" panel.\n- Click on the `+` button under the \"Embedded Binaries\" section.\n- You will see two different `Message.xcodeproj` folders each with two different versions of the `Message.framework` nested inside a `Products` folder.\n\n    \u003e It does not matter which `Products` folder you choose from, but it does matter whether you choose the top or bottom `Message.framework`.\n\n- Select the top `Message.framework` for iOS.\n\n- And that's it!\n\n  \u003e The `Message.framework` is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.\n  \n## Author\n\nincetro, incetro@ya.ru\n\n## License\n\nMessage is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincetro%2Fmessage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincetro%2Fmessage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincetro%2Fmessage/lists"}