{"id":2466,"url":"https://github.com/TheAbstractDev/NotchyAlert","last_synced_at":"2025-08-03T00:31:45.645Z","repository":{"id":62449100,"uuid":"130342986","full_name":"TheAbstractDev/NotchyAlert","owner":"TheAbstractDev","description":"🚨Use the iPhone X Notch to display alerts. 🚨","archived":false,"fork":false,"pushed_at":"2019-06-27T13:02:11.000Z","size":1097,"stargazers_count":71,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-18T04:48:42.397Z","etag":null,"topics":["animation","iphonex","notch","swift"],"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/TheAbstractDev.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-04-20T09:47:16.000Z","updated_at":"2023-08-17T11:52:46.000Z","dependencies_parsed_at":"2022-11-01T23:07:54.443Z","dependency_job_id":null,"html_url":"https://github.com/TheAbstractDev/NotchyAlert","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAbstractDev%2FNotchyAlert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAbstractDev%2FNotchyAlert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAbstractDev%2FNotchyAlert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheAbstractDev%2FNotchyAlert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheAbstractDev","download_url":"https://codeload.github.com/TheAbstractDev/NotchyAlert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510708,"owners_count":17931752,"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":["animation","iphonex","notch","swift"],"created_at":"2024-01-05T20:16:14.437Z","updated_at":"2024-12-06T18:30:30.317Z","avatar_url":"https://github.com/TheAbstractDev.png","language":"Swift","readme":"# NotchyAlert\n[![Cocoapods compatible](https://img.shields.io/badge/Cocoapods-compatible-4BC51D.svg?style=flat)](http://cocoapods.org)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/badge/Platform-iOS-lightgrey.svg)](https://developer.apple.com/)\n[![License](https://img.shields.io/badge/license-MIT-999999.svg)](https://github.com/TheAbstractDev/NotchyAlert/blob/master/LICENSE)\n[![Build Status](https://travis-ci.org/TheAbstractDev/NotchyAlert.svg?branch=master)](https://travis-ci.org)\n\n![](Screenshots/banner.png)\n\n## Prerequisites\n- Xcode 9.x\n- Swift 4.x\n- iPhone X Simulator/Device\n\n## Demo\n\n\u003cp float=\"left\"\u003e\n\u003cimg src=\"https://github.com/ivanvorobei/NotchyAlert/blob/master/Screenshots/notchySimple.gif\" width=\"210\"\u003e\n\u003cimg src=\"https://github.com/ivanvorobei/NotchyAlert/blob/master/Screenshots/notchyWithDescription.gif\" width=\"210\"\u003e\n\u003cimg src=\"https://github.com/ivanvorobei/NotchyAlert/blob/master/Screenshots/notchyWithImage.gif\" width=\"210\"\u003e\n\u003cimg src=\"https://github.com/ivanvorobei/NotchyAlert/blob/master/Screenshots/notchyWithDescImage.gif\" width=\"210\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n### Cocoapods\nTo install NotchyAlert using [Cocoapods](http://cocoapods.org), add the following line to your Podfile:\n\n```\npod 'NotchyAlert'\n```\n\n### Carthage\nTo install NotchyAlert using [Carthage](https://github.com/Carthage/Carthage), add the following line to your Cartfile:\n\n```\ngithub \"TheAbstractDev/NotchyAlert\"\n```\n\n## Usage\nFirst, you'll need to import NotchyAlert\n\n```swift\nimport NotchyAlert\n```\n\n#### Title Only\n\n```swift\nlet notchy = Notchy(title: \"Oops!\", description: nil, image: nil)\nnotchy.presentNotchy(in: self.view, duration: 3)\n```\n\n#### Title and Description\n\n```swift\nlet notchy = Notchy(title: \"Oops!\", description: \"No Internet Connection.\", image: nil)\nnotchy.presentNotchy(in: self.view, duration: 3)\n```\n\n#### Title and Image\n\n```swift\nlet notchy = Notchy(title: \"Oops!\", description: nil, image: \"\u003cYOUR IMAGE\u003e\")\nnotchy.presentNotchy(in: self.view, duration: 3)\n```\n\n#### Title, Decription and Image\n\n```swift\nlet notchy = Notchy(title: \"Oops!\", description: \"No Internet Connection.\", image: \"\u003cYOUR IMAGE\u003e\")\nnotchy.presentNotchy(in: self.view, duration: 3)\n```\n\n### Bounce Effect\nBy default, the bounce effect is true.\nYou can choose to disable the bounce effect by setting false on the call of `presentNotchy`\n```swift\nnotchy.presentNotchy(in: self.view, duration: 3, bounce: false)\n```\n\n## Example\nYou can test it by downloading and run the Example project.\n\n\n## License\nNotchyAlert is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["UI"],"sub_categories":["Alert \u0026 Action Sheet"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheAbstractDev%2FNotchyAlert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheAbstractDev%2FNotchyAlert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheAbstractDev%2FNotchyAlert/lists"}