{"id":2431,"url":"https://github.com/PhilippeBoisney/AlertViewLoveNotification","last_synced_at":"2025-08-03T00:30:50.093Z","repository":{"id":56901795,"uuid":"61873343","full_name":"PhilippeBoisney/AlertViewLoveNotification","owner":"PhilippeBoisney","description":"A simple and attractive AlertView to ask permission to your users for Push Notification.","archived":false,"fork":false,"pushed_at":"2017-10-05T07:38:28.000Z","size":2558,"stargazers_count":37,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-30T02:16:16.596Z","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/PhilippeBoisney.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":"2016-06-24T09:26:28.000Z","updated_at":"2022-03-23T21:55:00.000Z","dependencies_parsed_at":"2022-08-21T01:50:42.637Z","dependency_job_id":null,"html_url":"https://github.com/PhilippeBoisney/AlertViewLoveNotification","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FAlertViewLoveNotification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FAlertViewLoveNotification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FAlertViewLoveNotification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FAlertViewLoveNotification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhilippeBoisney","download_url":"https://codeload.github.com/PhilippeBoisney/AlertViewLoveNotification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503226,"owners_count":17930544,"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-01-05T20:16:13.608Z","updated_at":"2024-12-06T17:31:08.480Z","avatar_url":"https://github.com/PhilippeBoisney.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Alert \u0026 Action Sheet","Other free courses"],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg src =\"https://raw.githubusercontent.com/PhilippeBoisney/AlertViewLoveNotification/master/bandeau.png\", align=\"center\"/\u003e\n\u003c/p\u003e\nA simple and attractive AlertView **to ask permission to your users for Push Notification.**\n\n[![Platform](http://img.shields.io/badge/platform-ios-blue.svg?style=flat\n)](https://developer.apple.com/iphone/index.action)\n[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat\n)](https://developer.apple.com/swift)\n[![License](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat\n)](http://mit-license.org)\n\n## PRESENTATION\n\n\u003cp\u003eAsk permission to user for push notification is really important. But the native alertview is so ugly and often means SPAM for user..\u003cbr\u003e\nWith AlertViewLoveNotification, asking permission for push notification \u003cb\u003ebecomes easy and beautiful.\u003c/b\u003e\u003cbr\u003e\nSo try it !\n\u003c/p\u003e\n\n## DEMO\n\u003cp align=\"center\"\u003e\n \u003cimg src =\"https://raw.githubusercontent.com/PhilippeBoisney/AlertViewLoveNotification/master/demo.gif\", width=480, height=320, align=\"left\"/\u003e\n \u003cimg src =\"https://raw.githubusercontent.com/PhilippeBoisney/AlertViewLoveNotification/master/screenshot.png\", height=320/\u003e\n\u003c/p\u003e\n\n## INSTALLATION\n\n####CocoaPods\n```\npod 'AlertViewLoveNotification'\n```\n\n#### Manually\n1. Download and drop ```AlertViewLoveNotification.swift``` in your project.  \n2. Congratulations! \n\n## USAGE\n```swift\n\n//Simply call AlertViewLoveNotification...\n var alertView = AlertViewLoveNotification(imageName: \"iconNotification\", labelTitle: \"ENABLE PUSH NOTIFICATIONS\", labelDescription: \"Would you like to be alerted about us, at any moment, even when you're sleeping ? Because we miss you... Always.\", buttonYESTitle: \"Yes, Of course !\", buttonNOTitle: \"No, sorry.\")\n\n//... and show it !\nalertView.show()\n\n//And maybe, if you want, you can hide it.\nalertView.hide()\n\n```\n**CUSTOMIZING**\n\nYou have to set options **BEFORE** call show() function.\n\n```swift\n///Height of each view (Total of this height MUST be equal to 1)\nself.alertView.heightOfButtonYes = 0.1\nself.alertView.heightOfButtonNo = 0.1\nself.alertView.heightSpaceBetweenViews = 0.05 ///There is 4 spaces\nself.alertView.heightOfContenerForImage = 0.35\nself.alertView.heightOfTitle = 0.1\nself.alertView.heightOfDescription = 0.15\n\n///Width of each view\nself.alertView.widthOfImage = 0.9\nself.alertView.widthOfTitle = 0.7\nself.alertView.widthOfDescription = 0.9\nself.alertView.widthForButtons = 0.8\n\nself.alertView.heightOfImage = 0.7\n\n///Colors of views\nself.alertView.colorLabelTitle = UIColor(red:0.29, green:0.29, blue:0.29, alpha:1.0)\nself.alertView.colorLabelDescription = UIColor(red:0.29, green:0.29, blue:0.29, alpha:1.0)\n\nself.alertView.colorBackgroundAlertView = UIColor.redColor()\n\nself.alertView.colorBacgroundButtonYes = UIColor(red:0.96, green:0.56, blue:0.46, alpha:1.0)\nself.alertView.colorTextColorButtonYes = UIColor.whiteColor()\n\nself.alertView.colorBacgroundButtonNO = UIColor.clearColor()\nself.alertView.colorTextColorButtonNO = UIColor(red:0.29, green:0.29, blue:0.29, alpha:1.0)\n\n```\n\n## FEATURES\n- [x] Multi-Device Full Support\n- [x] Rotation Support\n- [x] Fully customizable\n\n## Version\n1.4\n\n## Author\nPhilippe BOISNEY (phil.boisney(@)gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPhilippeBoisney%2FAlertViewLoveNotification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPhilippeBoisney%2FAlertViewLoveNotification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPhilippeBoisney%2FAlertViewLoveNotification/lists"}