{"id":13686039,"url":"https://github.com/dphans/DPNotify","last_synced_at":"2025-05-01T05:31:30.581Z","repository":{"id":97387639,"uuid":"38127128","full_name":"dphans/DPNotify","owner":"dphans","description":"DPNotify used to send short notifications on screen simple \u0026 quickly for iOS developing using Swift.","archived":false,"fork":false,"pushed_at":"2022-10-14T10:27:09.000Z","size":1238,"stargazers_count":39,"open_issues_count":1,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-12T08:35:01.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dphans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-06-26T18:29:21.000Z","updated_at":"2023-08-28T00:59:55.000Z","dependencies_parsed_at":"2024-01-14T18:05:32.994Z","dependency_job_id":null,"html_url":"https://github.com/dphans/DPNotify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphans%2FDPNotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphans%2FDPNotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphans%2FDPNotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dphans%2FDPNotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dphans","download_url":"https://codeload.github.com/dphans/DPNotify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251830449,"owners_count":21650802,"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-08-02T14:01:02.264Z","updated_at":"2025-05-01T05:31:29.808Z","avatar_url":"https://github.com/dphans.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# DPNotify\nDPNotify used to send short notifications on screen simple \u0026amp; quickly for iOS developing using Swift.\n\n# Preview\n![alt tag](https://github.com/dphans/DPNotify/blob/master/demo.gif)\n\n# Features\n- block syntax.\n- delay timer.\n- 5 notify styles available (Default, Danger, Warning, Success, Disabled).\n- customize font \u0026 color.\n- tap to dismiss message.\n- request more? please contact me (my email below)\n\n# Installation\nJust add file named DPNotify.swift to your project.\n\n# Examples\n\n- Show notify in self.view:\n``` swift\nDPNotify.sharedNotify.showNotifyInView(view, title: \"Awesome :P\", dismissOnTap: true, notifyType: .DEFAULT)\n```\n\n- Completion handler:\n``` swift\nDPNotify.sharedNotify.showNotifyInView(view,\n                title: items[indexPath.row],\n                dismissOnTap: true,\n                notifyType: .DANGER,\n                delay: 0,\n                completionHandler: { () -\u003e Void in\n                    var alert = UIAlertView(\n                        title: \"Completed!\",\n                        message: \"Notify showed!\",\n                        delegate: nil,\n                        cancelButtonTitle: \"Hit ;-)\")\n                    alert.show()\n                })\n```\n\n- Dismiss message:\n``` swift\nDPNotify.sharedNotify.dismissNotify()\n```\n``` swift\nDPNotify.sharedNotify.dismissNotify({ () -\u003e Void in\n                var alert = UIAlertView(title: \"Completed!\", message: \"Notify dismissed!\", delegate: nil, cancelButtonTitle: \"はい！\")\n                alert.show()\n```\n\n- Custom style:\n``` swfit\nDPNotify.sharedNotify.bannerForegroundColor = DPNotify.sharedNotify.color(0x607D8B, alpha: 1)\nDPNotify.sharedNotify.bannerBackgroundColor = UIColor(white: 0.8, alpha: 0.8)\nDPNotify.sharedNotify.notifyTitleFont = UIFont(name: \"Avenir\", size: 17.0)\nDPNotify.sharedNotify.showNotifyInView(view, title: \"Hello, Dino Phan :D\", dismissOnTap: true)\n```\n\n# Contact:\nHomepage: https://www.dphans.me - Email: baophan94@icloud.com.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdphans%2FDPNotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdphans%2FDPNotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdphans%2FDPNotify/lists"}