All Projects → ppth0608 → Bpstatusbaralert

ppth0608 / Bpstatusbaralert

Licence: mit
BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Bpstatusbaralert

Lihalert
Advance animated alerts for iOS written in Swift
Stars: ✭ 34 (-73.64%)
Mutual labels:  ios-ui, alertview
Swiftoverlays
SwiftOverlays is a Swift GUI library for displaying various popups and notifications
Stars: ✭ 621 (+381.4%)
Mutual labels:  notifications, ios-ui
Hwpopcontroller
pop up your ViewController with custom size, position and animations
Stars: ✭ 113 (-12.4%)
Mutual labels:  ios-ui
Push Receiver
A library to subscribe to GCM/FCM and receive notifications within a node process.
Stars: ✭ 125 (-3.1%)
Mutual labels:  notifications
Tfsnotificationrelay
An extensible plugin for TFS that sends notifications to Slack, HipChat and IRC
Stars: ✭ 120 (-6.98%)
Mutual labels:  notifications
Statusok
Monitor your Website and APIs from your Computer. Get Notified through Slack, E-mail when your server is down or response time is more than expected.
Stars: ✭ 1,522 (+1079.84%)
Mutual labels:  notifications
Facebook
📨 Facebook Notifications Channel for Laravel
Stars: ✭ 120 (-6.98%)
Mutual labels:  notifications
Homebridge Http Switch
Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
Stars: ✭ 111 (-13.95%)
Mutual labels:  notifications
Notification
WordPress Notification plugin
Stars: ✭ 128 (-0.78%)
Mutual labels:  notifications
Edge To Edge
Full screen Android apps using simple Kotlin DSL
Stars: ✭ 118 (-8.53%)
Mutual labels:  statusbar
Serverless Notifications
Serverless Service for Serverless Notifications (AWS IoT)
Stars: ✭ 124 (-3.88%)
Mutual labels:  notifications
Twittnuker
Android 4.0+ Twitter Client
Stars: ✭ 117 (-9.3%)
Mutual labels:  notifications
Anjay
C implementation of the client-side OMA LwM2M protocol
Stars: ✭ 115 (-10.85%)
Mutual labels:  notifications
Allkdic
올ㅋ사전 - 맥에서 단축키를 누르면 영어사전이 뙇!!!!
Stars: ✭ 120 (-6.98%)
Mutual labels:  statusbar
Status
A no-root status bar replacement for Android.
Stars: ✭ 113 (-12.4%)
Mutual labels:  statusbar
Nibar
Simple Übersicht status bar with yabai support.
Stars: ✭ 127 (-1.55%)
Mutual labels:  statusbar
React Bs Notifier
A react component to show growl-like notifications using bootstrap alerts
Stars: ✭ 112 (-13.18%)
Mutual labels:  notifications
Waybar
Highly customizable Wayland bar for Sway and Wlroots based compositors. ✌️ 🎉
Stars: ✭ 2,037 (+1479.07%)
Mutual labels:  statusbar
Update Notifier
The idea for this module came from the desire to apply the browser update strategy to CLI tools, where everyone is always on the latest version. We first tried automatic updating, which we discovered wasn't popular. This is the second iteration of that idea, but limited to just update notifications.
Stars: ✭ 1,594 (+1135.66%)
Mutual labels:  notifications
Laravel Fcm
Firebase Cloud Messaging (FCM) sender for Laravel
Stars: ✭ 129 (+0%)
Mutual labels:  notifications

BPStatusBarAlert

Version License Platform

BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.

Demo

StatusBar Position

NavigationBar Position

Requirements

  • Deployment Target - iOS 8.3
  • Swift Version - Swift 3

Installation

CocoaPods

BPStatusBarAlert is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "BPStatusBarAlert"

Manual

Copy the folder BPStatusBarAlert to your project

Usage

First, you need the following import BPStatusBarAlert

import BPStatusBarAlert

Now, you can uses BPStatusBarAlert simply like this

@IBAction func buttonTapped(_ sender: Any) {
    BPStatusBarAlert()
        .message(message: "Complete Sharing This Contents")
        .show()
}

Initialize BPStatusBarAlert with no parameters, it will set up default value for property Default setting

  • Animation Duration : 0.3
  • Animation Delay : 2.0
  • Postion : .statusBar
  • Background Color : UIColor(red: 77/255, green: 188/255, blue: 201/255, alpha: 1)
  • Message Text : ""
  • Message Text Color : .white
  • Completion : nil

So, If you want customize property, just call init method with parameters and chaning function

  • init (customize Duration, Delay and Postion) BPStatusBarAlert class init method is composed below code
public init(duration: TimeInterval = 0.3, delay: TimeInterval = 2, position: AlertPosition = .statusBar)

So, if you change time interval in animations and position of BPStatusBarAlert, using defaults paramaters

  • chaning function (customize Background Color, Message Text, Message Text Color, Completion)
BPStatusBarAlert(duration: 0.3, delay: 2, position: .statusBar) // customize duration, delay and position
    .message(message: "Complete Sharing This Contents")         // customize message
    .messageColor(color: .white)                                // customize message color
    .bgColor(color: .blue)                                      // customize view's background color
    .completion { print("completion closure will called") }     // customize completion(Did hide alert view)
    .show()                                                     // Animation start

TODO

  • [x] Change window level on NavigationBar position
  • [ ] Support landscape Mode
  • [ ] Custom Show and Hide (like facebook)
  • [ ] Support Custom Navigation Bar

Author

Ben.Park, [email protected]

Contribute

always welcome :) Only pull request.

License

BPStatusBarAlert is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].