STopAlert is a framework written in Swift that makes it show alert message at the top.
Let's print out the notification message in the status bar! This is a very neat way to notify.
// 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)
STopAlert is available through CocoaPods. To install it, simply add the following line to your Podfile
:
pod 'STopAlert'
Contributions are always welcome :).
This is my first swift framework. Please give me a lots of feedback!
STopAlert is available under the MIT license. See the LICENSE file for more info.