SwiftyOnboard icon indicating copy to clipboard operation
SwiftyOnboard copied to clipboard

Crash when background color set to "black" using delegate

Open hemangshah opened this issue 6 years ago • 1 comments

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. 🔥
}

hemangshah avatar Nov 27 '18 05:11 hemangshah

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

spaquet avatar Jan 19 '19 01:01 spaquet