Skip to content
New issue

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

Options in swift CustomType #197

Open
ylecuyer opened this issue Apr 3, 2016 · 1 comment
Open

Options in swift CustomType #197

ylecuyer opened this issue Apr 3, 2016 · 1 comment

Comments

@ylecuyer
Copy link

ylecuyer commented Apr 3, 2016

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

let options = [ kCRToastNotificationTypeKey: 2, kCRToastTextKey: "Good", kCRToastBackgroundColorKey: UIColor.init(red: 0, green: 0.67, blue: 0, alpha: 1), kCRToastNotificationPreferredHeightKey: 50, ]

@mixdesign
Copy link

@ylecuyer use CRToastType.Custom.rawValue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants