juanpablofernandez / SwiftyOnboard

A swifty iOS framework that allows developers to create beautiful onboarding experiences.
MIT License
1.25k stars 105 forks source link

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

Open hemangshah opened 5 years ago

hemangshah commented 5 years ago

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 commented 5 years ago

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