You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OEANotification is an iOS library which provides to create notifications and customize them easily.
You can create notifications with just one line of code ,if you are bored UIAlertView.
Usage
classViewController:UIViewController{overridefunc viewDidLoad(){
super.viewDidLoad()OEANotification.setDefaultViewController(self)
// to create simple success notification
OEANotification.notify("Test Title", subTitle:"Test SubTitle", image:nil, type:NotificationType.Success, isDismissable:true)
// to create info notification
//OEANotification.notify("Test Title", subTitle: "Test SubTitle", image: nil, type: NotificationType.Info, isDismissable: true)
// to create warning notification
//OEANotification.notify("Test Title", subTitle: "Test SubTitle", image: nil, type: NotificationType.Warning, isDismissable: true)
// to create completion handler based notification
OEANotification.notify("Test Title", subTitle:"Test Subtitle", image:nil, type:.Success, isDismissable:true, completion:{()->Voidinprint("completed")}, touchHandler:nil)
// to create touchHandler based notificaiton
OEANotification.notify("Test Title", subTitle:"Test Subtitle", image:nil, type:.Success, isDismissable:true, completion:{()->Voidinprint("completed")}){()->Voidinprint("touched event")}}
Installation
OEANotification is available through CocoaPods. To install
it, simply add the following line to your Podfile: