Open ylecuyer opened 8 years ago
When using with swift there is an error when setting custom type:
let options = [ kCRToastNotificationTypeKey: CRToastType.Custom, kCRToastTextKey: "Good", kCRToastBackgroundColorKey: UIColor.init(red: 0, green: 0.67, blue: 0, alpha: 1), kCRToastNotificationPreferredHeightKey: 50, ]
We have to replace CRToastType.Custom by 2
CRToastType.Custom
2
let options = [ kCRToastNotificationTypeKey: 2, kCRToastTextKey: "Good", kCRToastBackgroundColorKey: UIColor.init(red: 0, green: 0.67, blue: 0, alpha: 1), kCRToastNotificationPreferredHeightKey: 50, ]
@ylecuyer use CRToastType.Custom.rawValue
CRToastType.Custom.rawValue
When using with swift there is an error when setting custom type:
let options = [ kCRToastNotificationTypeKey: CRToastType.Custom, kCRToastTextKey: "Good", kCRToastBackgroundColorKey: UIColor.init(red: 0, green: 0.67, blue: 0, alpha: 1), kCRToastNotificationPreferredHeightKey: 50, ]
We have to replace
CRToastType.Custom
by2
let options = [ kCRToastNotificationTypeKey: 2, kCRToastTextKey: "Good", kCRToastBackgroundColorKey: UIColor.init(red: 0, green: 0.67, blue: 0, alpha: 1), kCRToastNotificationPreferredHeightKey: 50, ]