Skip to content

iOS 10 like notification bar designed for in-app notification message showing for iOS 10 and below versions.

License

Notifications You must be signed in to change notification settings

rafattouqir/RRNotificationBar

Repository files navigation

RRNotificationBar Awesome

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.

Animation

Installation

CocoaPods:

pod 'RRNotificationBar'

Manually:

Drag the RRNotificationBar/RRNotificationBar.swift file into your project.

Example

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()

License

MIT LICENSE

To the extent possible under law, RAFAT has waived all copyright and related or neighboring rights to this work.