I m getting a string from NSNotification,but facing issue of optional keyword attached with the given string,wants to remove OPTIONAL keyword from string,here is my code:
func getAlertMsg(notification:NSNotification!){
if let strAlert = notification?.object.debugDescription{
print(strAlert)
Helper .showAsAlert(strMessage: strAlert, VC: self)
}
}
Response
{
"status": true,
"message": "User created",
"user_detail":{}
}