All Projects → jinSasaki → AlertBar

jinSasaki / AlertBar

Licence: MIT License
An easy alert on status bar

Programming Languages

swift
15916 projects
perl
6916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to AlertBar

eins-modal
Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
Stars: ✭ 30 (-53.12%)
Mutual labels:  alert, easy-to-use
Cfnotify
A customizable framework to create draggable views
Stars: ✭ 490 (+665.63%)
Mutual labels:  alert, carthage
Sclalertview
Beautiful animated Alert View. Written in Objective-C
Stars: ✭ 3,426 (+5253.13%)
Mutual labels:  alert, carthage
Ezxss
ezXSS is an easy way for penetration testers and bug bounty hunters to test (blind) Cross Site Scripting.
Stars: ✭ 1,022 (+1496.88%)
Mutual labels:  alert, easy-to-use
Alertift
Swifty, modern UIAlertController wrapper.
Stars: ✭ 242 (+278.13%)
Mutual labels:  alert, carthage
Cdalertview
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift
Stars: ✭ 1,056 (+1550%)
Mutual labels:  alert, carthage
Statusalert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.
Stars: ✭ 809 (+1164.06%)
Mutual labels:  alert, carthage
Harpy
Harpy checks a user's currently installed version of your iOS app against the version that is currently available in the App Store. If a new version is available, an alert can be presented to the user informing them of the newer version, and giving them the option to update the application.
Stars: ✭ 2,619 (+3992.19%)
Mutual labels:  alert, carthage
JHTAlertController
A custom iOS alert that replaces the stock UIAlertController. Easily style the alert to match your app. Written in Swift for iOS.
Stars: ✭ 58 (-9.37%)
Mutual labels:  alert, carthage
CNN Own Dataset
CNN example for training your own datasets.
Stars: ✭ 25 (-60.94%)
Mutual labels:  easy-to-use
Klendario
A Swift wrapper over the EventKit framework
Stars: ✭ 44 (-31.25%)
Mutual labels:  carthage
ipvpn
[WIP] Easy-to-use decentralized secure overlay private network (for any device)
Stars: ✭ 24 (-62.5%)
Mutual labels:  easy-to-use
ELWebService
A lightweight HTTP networking framework for Swift
Stars: ✭ 89 (+39.06%)
Mutual labels:  carthage
BlockiesSwift
Unique blocky identicons generator for Swift
Stars: ✭ 53 (-17.19%)
Mutual labels:  carthage
Modesta
🎨 A clean CSS framework made to be dark, responsive and easy to build with.
Stars: ✭ 76 (+18.75%)
Mutual labels:  easy-to-use
teks
Easily get custom go template based outputs to your command-line tool. Like in docker/kubernetes
Stars: ✭ 41 (-35.94%)
Mutual labels:  easy-to-use
NKJMovieComposer
NKJMovieComposer is very simple movie composer for iOS.
Stars: ✭ 40 (-37.5%)
Mutual labels:  carthage
quick-net
This is a top level socket library, making servers and clients EASY!
Stars: ✭ 15 (-76.56%)
Mutual labels:  easy-to-use
Cathay
an iOS project for demonstration of Reactive Programming
Stars: ✭ 21 (-67.19%)
Mutual labels:  carthage
cocos2x-adaptation
cocos2dx 横版各种适配 iphoneX适配 齐刘海 凹凸屏
Stars: ✭ 25 (-60.94%)
Mutual labels:  iphonex

AlertBar

Version License Platform Carthage compatible

An easy alert on status bar.

Demo
demo

Usage

Import

import AlertBar

Show alert message

AlertBar has default types:

  • success
  • error
  • notice
  • warning
  • info
AlertBar.show(type: .success, message: "This is a Success message.")

And you can customize the background and text colors of AlertBar.
Select custom type and set background and text colors as UIColor: .custom(BackgroundColor, TextColor)

AlertBar.show(type: .custom(.lightGray, .black), message: "This is a Custom message.")

Alert duration

AlertBar accepts to custom alert duration.

AlertBar.show(type: .success, message: "This is a Success message.", duration: 10)

AlertBar Options

AlertBar accepts options follows:

  • Consider Safe Area
  • Stretch bar
  • TextAlignment

Use setDefault method to set default options.

let options = AlertBar.Options(
    shouldConsiderSafeArea: true, 
    isStretchable: true, 
    textAlignment: .center,
    font: UIFont.systemFont(ofSize: 14.0, weight: .medium)
)
AlertBar.setDefault(options: options)

Or set parameter of show method to each AlertBar.

let options = AlertBar.Options(
    shouldConsiderSafeArea: true, 
    isStretchable: true, 
    textAlignment: .center,
    font: UIFont.systemFont(ofSize: 14.0, weight: .medium)
)
AlertBar.show(type: .success, message: "This is AlertBar!", options: options)

Consider Safe Area

The Safe Area is adopted from iOS 11 and AlertBar can change whether to consider SafeArea or not.

AlertBar.Options#shouldConsiderSafeArea: Bool is set to true by default.

shouldConsiderSafeArea == true shouldConsiderSafeArea == false
true false

Stretch bar

AlertBar can stretch the bar if the message needs the multi lines.

AlertBar.Options#isStretchable: Bool is set to false by default.

isStretchable == true isStretchable == false
true false

TextAlignment

AlertBar accepts to custom text alignment.

Installation

CocoaPods

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

pod "AlertBar"

Carthage

AlertBar is available through Carthage since 0.3.1. To install it, simply add the following line to your Cartfile:

github "jinSasaki/AlertBar"

Author

Jin Sasaki, [email protected]

License

AlertBar 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].