gokulgovind / GLNotificationBar

GLNotificationBar is a ios10 style notification bar, can be used to handle push notification in active state.
MIT License
302 stars 44 forks source link

Title & Detail Text are coming up as Optional("some text") #2

Closed Rashesh-Bosamiya closed 7 years ago

Rashesh-Bosamiya commented 7 years ago

Optional("Some text")

Output coming as above, Although I am passing simple unwrapped string.

In Swift 3.

I have downloaded from this URL: https://github.com/zammitjames/GLNotificationBar

CalebeNP commented 7 years ago

@Rashesh-Bosamiya to "fix" this you just have to make this change:

Before: fileprivate func setUpNotificationBar(_ header:String!, body:String!, notificationStyle:GLNotificationStyle) After: fileprivate func setUpNotificationBar(_ header:String, body:String, notificationStyle:GLNotificationStyle)

Rashesh-Bosamiya commented 7 years ago

Many thanks!

Got my problem solved!