/STopAlert

STopAlert is a framework written in Swift that makes it show alert message at the top.

Primary LanguageSwiftMIT LicenseMIT

STopAlert

CocoaPods

STopAlert is a framework written in Swift that makes it show alert message at the top.

Description

Let's print out the notification message in the status bar! This is a very neat way to notify.

Usage

// Just message.
STopAlert.show(text: "Hello World!")

// with Case.
STopAlert.show(text: "Hello World!", type: .positive)
// positive : green
// negative : red

// Alert with options.
STopAlert.show(text: "Hello World!", backgroundColor: .blue, textColor: .darkGray, duration: 2.0, animationDuration: 0.25)

Installation

Cocoapods

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

pod 'STopAlert'

Contributions

Contributions are always welcome :).

This is my first swift framework. Please give me a lots of feedback!

License

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