{"id":2414,"url":"https://github.com/thii/Notie","last_synced_at":"2025-08-02T23:33:24.978Z","repository":{"id":62449114,"uuid":"46536182","full_name":"thii/Notie","owner":"thii","description":"In-app notification in Swift, with customizable buttons and input text field.","archived":false,"fork":false,"pushed_at":"2017-05-28T08:40:28.000Z","size":630,"stargazers_count":84,"open_issues_count":0,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-27T17:08:18.330Z","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/thii.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":"2015-11-20T03:15:13.000Z","updated_at":"2023-02-27T01:35:16.000Z","dependencies_parsed_at":"2022-11-01T23:46:49.106Z","dependency_job_id":null,"html_url":"https://github.com/thii/Notie","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/thii%2FNotie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thii%2FNotie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thii%2FNotie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thii%2FNotie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thii","download_url":"https://codeload.github.com/thii/Notie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503205,"owners_count":17930538,"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.184Z","updated_at":"2024-12-06T17:31:03.654Z","avatar_url":"https://github.com/thii.png","language":"Swift","funding_links":[],"categories":["UI","Notification","Libs","UI and SwiftUI"],"sub_categories":["Alert \u0026 Action Sheet","Other free courses","UI"],"readme":"Notie\n=====\n\n[![Build Status](https://travis-ci.org/thii/Notie.svg)](https://travis-ci.org/thii/Notie)\n[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/Notie.svg)](https://img.shields.io/cocoapods/v/Notie.svg)\n[![Docs](https://img.shields.io/cocoapods/metrics/doc-percent/Notie.svg)](http://cocoadocs.org/docsets/Notie)\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/cocoapods/p/Notie.svg?style=flat)](http://cocoadocs.org/docsets/Notie)\n[![License](https://img.shields.io/cocoapods/l/Notie.svg)](https://raw.githubusercontent.com/thii/Notie/master/LICENSE)\n\nUndistracted in-app notification in Swift, with added buttons and input box.\n\n![](https://raw.githubusercontent.com/thii/Notie/master/Assets/NotieScreencast.gif)\n\n## Installation\n\n### CocoaPods\n\nTo integrate Notie into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\npod 'Notie'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\nAnd add `import Notie` to the top of the files using Notie.\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate Notie into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"thii/Notie\"\n```\n\nRun `carthage` to build the framework and drag the built `Notie.framework` into your Xcode project.\n\n## Usage\n\n### Example\n\nShow a notification with `Confirm` style\n\n```swift\nlet notie = Notie(view: self.view, message: \"Are you sure you want to do that?\", style: .Confirm)\n\nnotie.leftButtonAction = {\n\t// Add your left button action here\n    notie.dismiss()\n}\n\nnotie.rightButtonAction = {\n\t// Add your right button action here\n    notie.dismiss()\n}\n\nnotie.show()\n```\nOr, if you want just a standard notification\n\n```swift\n\tlet notie = Notie(view: self.view, message: \"This is a notification!\", style: .Confirm)\n\n\n    notie.buttonCount = Notie.buttons.standard\n\n    notie.leftButtonAction = {\n            notie.dismiss()\n     }\n\n\n     notie.show()\n\n```\n\n### Parameters\n\nThe following parameters can be modified to customize the appearance of the notification.\n\n- `style`: The style of the notification. `.Confirm` style includes message view and two confirm buttons. `.Input` style adds an extra input text field. Default to `.Confirm`.\n\n- `leftButtonAction`: A block to call when the user taps on the left button.\n\n- `rightButtonAction`: A block to call when the user taps on the right button.\n\n- `leftButtonTitle`: The title of the left button. Default to `OK`.\n\n- `rightButtonTitle`: The title of the left button. Default to `Cancel`.\n\n- `placeholder`: The placeholder of the input text field. Default to `nil`.\n\n- `animationDuration`: How long the slide down animation should last.\n\n- `messageBackgroundColor`: The background color of the message view.\n\n- `messageTextColor`: The text color of the message view. Default to white color.\n\n- `inputFieldBackgroundColor`: The background color of the input text field. Default to white color.\n\n- `inputFieldTextColor`: The text color of the input text field. Default to dark gray.\n\n- `leftButtonBackgroundColor`: The background color of the left button.\n\n- `leftButtonTextColor`: The text color of the left button. Default to white color.\n\n- `rightButtonBackgroundColor`: The background color of the right button.\n\n- `rightButtonTextColor`: The text color of the right button. Default to white color.\n- `buttonCount`: The button configuration, defaults to `Notie.buttonCount.standard` (two buttons). When the value is set to `Notie.buttonCount.single`, the action defaults to the left button.\n\n- `keyboardType`: The UIKeyboardType to use\n\n## Functions\n- `getText()` returns a String value of the text when using a `.Input` style\n\n\n## Requirements\n\niOS 9 or greater.\n\n## License\nNotie is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthii%2FNotie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthii%2FNotie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthii%2FNotie/lists"}