struct APIVersionCheck
{
static let nsObject: AnyObject? = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as AnyObject
static let date = UserDefaults.standard.value(forKey: "VersionDateParameter")
static let CheckdeviceToken = ""
static let checkAppVersion = nsObject as! String
static let CheckDeviceType = 1
static let CheckCustomerId = "1055"
static let CheckDate = Validator.sharedValidation().checkBlankString(APIVersionCheck.date as! String) == false ? "2016-08-03 11:20:53.957" : (APIVersionCheck.date as! String)
}
In last line of this struct CheckDate is getting nil value and therefore it prevents other codes also to get it run by crashing app. Will anybody contribute their so precious opinion to fix this issue ?