{"id":2450,"url":"https://github.com/ppth0608/BPStatusBarAlert","last_synced_at":"2025-08-03T00:30:49.885Z","repository":{"id":56903129,"uuid":"79986930","full_name":"ppth0608/BPStatusBarAlert","owner":"ppth0608","description":"BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar. ","archived":false,"fork":false,"pushed_at":"2019-04-08T09:06:18.000Z","size":48,"stargazers_count":129,"open_issues_count":7,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-24T14:48:36.919Z","etag":null,"topics":["alertview","ios","ios-ui","notifications","statusbar"],"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/ppth0608.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":"2017-01-25T05:48:08.000Z","updated_at":"2024-04-11T11:14:12.000Z","dependencies_parsed_at":"2022-08-21T01:50:52.270Z","dependency_job_id":null,"html_url":"https://github.com/ppth0608/BPStatusBarAlert","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPStatusBarAlert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPStatusBarAlert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPStatusBarAlert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppth0608%2FBPStatusBarAlert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppth0608","download_url":"https://codeload.github.com/ppth0608/BPStatusBarAlert/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":["alertview","ios","ios-ui","notifications","statusbar"],"created_at":"2024-01-05T20:16:14.065Z","updated_at":"2024-12-06T17:31:08.436Z","avatar_url":"https://github.com/ppth0608.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Alert \u0026 Action Sheet","Other free courses"],"readme":"# BPStatusBarAlert\n\n[![Version](https://img.shields.io/cocoapods/v/BPStatusBarAlert.svg?style=flat)](http://cocoapods.org/pods/BPStatusBarAlert)\n[![License](https://img.shields.io/cocoapods/l/BPStatusBarAlert.svg?style=flat)](http://cocoapods.org/pods/BPStatusBarAlert)\n[![Platform](https://img.shields.io/cocoapods/p/BPStatusBarAlert.svg?style=flat)](http://cocoapods.org/pods/BPStatusBarAlert)\n\n`BPStatusBarAlert` is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar. \u003c/br\u003e\n\n## Demo\n### StatusBar Position\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/9531750/22561102/400b9132-e9ba-11e6-8c25-8122fd108df5.gif\" width=\"320\" height=\"590\" /\u003e\n\n### NavigationBar Position\n\u003cimg src=\"https://cloud.githubusercontent.com/assets/9531750/22561105/4238acce-e9ba-11e6-8cc3-6dc9fd597a78.gif\" width=\"320\" height=\"590\" /\u003e\n\n## Requirements\n - Deployment Target - `iOS 8.3`\n - Swift Version - `Swift 3`\n\n## Installation\n\n### CocoaPods\nBPStatusBarAlert is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"BPStatusBarAlert\"\n```\n\n### Manual\nCopy the folder `BPStatusBarAlert` to your project\n\n## Usage\nFirst, you need the following import `BPStatusBarAlert`\n```Swift\nimport BPStatusBarAlert\n```\n\nNow, you can uses `BPStatusBarAlert` simply like this\n```Swift\n@IBAction func buttonTapped(_ sender: Any) {\n    BPStatusBarAlert()\n        .message(message: \"Complete Sharing This Contents\")\n        .show()\n}\n```\n\nInitialize `BPStatusBarAlert` with no parameters, it will set up default value for property\nDefault setting\n - Animation Duration : 0.3\n - Animation Delay : 2.0\n - Postion : .statusBar\n - Background Color : UIColor(red: 77/255, green: 188/255, blue: 201/255, alpha: 1)\n - Message Text : \"\"\n - Message Text Color : .white\n - Completion : nil\n \nSo, If you want customize property, just **call init method with parameters and chaning function**\n\n - init (customize Duration, Delay and Postion)\n`BPStatusBarAlert` class init method is composed below code\n```Swift\npublic init(duration: TimeInterval = 0.3, delay: TimeInterval = 2, position: AlertPosition = .statusBar)\n```\nSo, if you change time interval in animations and position of `BPStatusBarAlert`, using defaults paramaters\n\n - chaning function (customize Background Color, Message Text, Message Text Color, Completion)\n\n```Swift\nBPStatusBarAlert(duration: 0.3, delay: 2, position: .statusBar) // customize duration, delay and position\n    .message(message: \"Complete Sharing This Contents\")         // customize message\n    .messageColor(color: .white)                                // customize message color\n    .bgColor(color: .blue)                                      // customize view's background color\n    .completion { print(\"completion closure will called\") }     // customize completion(Did hide alert view)\n    .show()                                                     // Animation start\n```\n\n## TODO\n- [x] Change window level on NavigationBar position\n- [ ] Support landscape Mode\n- [ ] Custom Show and Hide (like facebook)\n- [ ] Support Custom Navigation Bar\n\n## Author\n\nBen.Park, ppth0608@naver.com\n\n## Contribute\n\nalways welcome :)\nOnly pull request.\n\n## License\n\nBPStatusBarAlert is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppth0608%2FBPStatusBarAlert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppth0608%2FBPStatusBarAlert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppth0608%2FBPStatusBarAlert/lists"}