iOS 10 like notification bar.
iOS 10 like notification bar designed for in-app notification messages showing for iOS 10 and below versions. In iOS 9~10, it can be used to show after an in-app remote notification is received and for multiple purposes.
pod 'RRNotificationBar'
Drag the RRNotificationBar/RRNotificationBar.swift
file into your project.
Show
RRNotificationBar().show(title: "Awesome Title", message: "Cool message received",onTap:{
print("tapped")
})
Hide
Though it hides automatically,you can force hide it.
let notificationBar = RRNotificationBar()
//after showing,hide if needed before timeout
notificationBar.hide()
To the extent possible under law, RAFAT has waived all copyright and related or neighboring rights to this work.