We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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, ]
The text was updated successfully, but these errors were encountered:
@ylecuyer use CRToastType.Custom.rawValue
CRToastType.Custom.rawValue
Sorry, something went wrong.
No branches or pull requests
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, ]
The text was updated successfully, but these errors were encountered: