{"id":24756217,"url":"https://github.com/ajijoyo/ajmessage","last_synced_at":"2025-07-08T23:07:20.615Z","repository":{"id":56900534,"uuid":"162382431","full_name":"ajijoyo/AJMessage","owner":"ajijoyo","description":"Simple popup message ","archived":false,"fork":false,"pushed_at":"2019-11-13T14:11:54.000Z","size":774,"stargazers_count":35,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-24T11:42:27.803Z","etag":null,"topics":["ios","message","notification","popup","swift","ui"],"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/ajijoyo.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":"2018-12-19T04:23:32.000Z","updated_at":"2024-03-13T11:32:50.000Z","dependencies_parsed_at":"2022-08-21T02:20:38.154Z","dependency_job_id":null,"html_url":"https://github.com/ajijoyo/AJMessage","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ajijoyo/AJMessage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJMessage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJMessage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJMessage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJMessage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajijoyo","download_url":"https://codeload.github.com/ajijoyo/AJMessage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajijoyo%2FAJMessage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264363793,"owners_count":23596507,"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":["ios","message","notification","popup","swift","ui"],"created_at":"2025-01-28T13:50:18.370Z","updated_at":"2025-07-08T23:07:20.598Z","avatar_url":"https://github.com/ajijoyo.png","language":"Swift","readme":"# AJMessage\n\n[![Language](https://img.shields.io/badge/Swift-4.2-orange.svg)]()\n[![CI Status](https://img.shields.io/travis/ajijoyo/AJMessage.svg?style=flat)](https://travis-ci.org/ajijoyo/AJMessage)\n[![Version](https://img.shields.io/cocoapods/v/AJMessage.svg?style=flat)](https://cocoapods.org/pods/AJMessage)\n[![License](https://img.shields.io/cocoapods/l/AJMessage.svg?style=flat)](https://cocoapods.org/pods/AJMessage)\n[![Platform](https://img.shields.io/cocoapods/p/AJMessage.svg?style=flat)](https://cocoapods.org/pods/AJMessage)\n\n## Example\n\n![demo](https://github.com/ajijoyo/AJMessage/blob/master/Demo/demo.gif)\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n```\nXCode 10.2\nSwift 5\n```\n\n## Installation\n\nAJMessage is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'AJMessage'\n```\n\n\n## Changelog\n\n- separated function show with initial view :\n\n```swift\nAJMessage(title: title, message: msg).show()\n\n//or\nlet asd = AJMessage(title: title, message: msg)\nasd.show()\n\n```\n- function callback  `onHide` has deprecated and changed to `onDismiss`  and have value `AJMessage` class \n- add new configuration of backgroundcolor  `setBackgroundColor` for each status\n- add new configuratoin of icon `setImage` for each status\n\n## Used\n\nSimple used\n```swift\nAJMessage.show(title: \"This is title\", message: \"message for description\",position:.top).onHide {\nprint(\"did dissmiss\")\n}\n```\nCan use NSAttributeString\n```swift\nlet title = NSAttributedString(string: \"Title\", attributes: [.font:UIFont.systemFont(ofSize: 15)])\nlet msg = NSMutableAttributedString(string: \"aasdasd\", attributes: [.font:UIFont.systemFont(ofSize: 14)])\nlet attach = NSTextAttachment()\nattach.image = UIImage(named:\"plus\")\nmsg.append(NSAttributedString(attachment: attach))\nmsg.append(NSAttributedString(string: \"asdasdasdasd asdasdasdasd asdasdasdasd asdasdasdasd asdasd\"))\n        \nAJMessage.show(title: title, message: msg,position:.top).onHide {\nprint(\"did dissmiss\")\n}\n```\n\ncustomize config\n\nfor spesific view present\n```swift\nvar config = AJMessageConfig()\n\n/**\nconfig.titleFont \nconfig.setBackgroundColor(.cyan, status: .success)\nconfig.setImage(UIImage(named:\"warning\"), status: .info)\n*/\n\nAJMessage.show(title: \"This is title\", message: \"message for description\", config: config)\n```\n\nfor global view present\njust set `AJMessageConfig.shared` on `didFinishLaunchingWithOptions` \n```swift\nvar config = AJMessageConfig.shared\n/**\nconfig.titleFont \nconfig.setBackgroundColor(.cyan, status: .success)\nconfig.setImage(UIImage(named:\"warning\"), status: .info)\n*/\n```\n\n\n\n## Author\n\najijoyo, self.ajiejoy@gmail.com\n\n## License\n\nAJMessage is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajijoyo%2Fajmessage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajijoyo%2Fajmessage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajijoyo%2Fajmessage/lists"}