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

Crash when background color set to "black" using delegate #38

Open
hemangshah opened this issue Nov 27, 2018 · 1 comment
Open

Crash when background color set to "black" using delegate #38

hemangshah opened this issue Nov 27, 2018 · 1 comment

Comments

@hemangshah
Copy link

If you pass "black" background color using a delegate it will crash. However it will not crash if I create black color like this (UIColor.init(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0)).

func swiftyOnboardBackgroundColorFor(_ swiftyOnboard: SwiftyOnboard, atIndex index: Int) -> UIColor? {
   return UIColor.black //This will crash. 🔥
}
@spaquet
Copy link

spaquet commented Jan 19, 2019

Based on the code it looks like the lib expects RGB defined color.

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