OEANotification
  • October 28, 2023

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


 

class ViewController: UIViewController {

override func 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: { () -> Void in
print(“completed”)
}, touchHandler: nil)
// to create touchHandler based notificaiton
OEANotification.notify(“Test Title”, subTitle: “Test Subtitle”, image: nil, type: .Success, isDismissable: true, completion: { () -> Void in
print(“completed”)
}) { () -> Void in
print(“touched event”)
}
}

Installation


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

pod “OEANotification”

Roadmap
  •  Default Notification Types (Warning, Info, Success)
  •  Custom Notification Type
  •  Device rotation handling
  •  Completion Handler based notification
  •  View Tapped Handler based notification
  •  Creating big example of OEANotification
  •  UI Tests
  •  Setup Travis

GitHub


View Github

#cocoapods #framework #ios #library #notification #swift #uitests
YOU MIGHT ALSO LIKE...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...