Say I have many functions that return more than one UIColor. Let's take a look at one of them:
func deepSkyBlue() -> UIColor {
return UIColor(red: 0, green: 0.69, blue: 0.98, alpha: 1)
}
All my functions have alpha equal to 1.0, so it'd make sense to use an extension and omit one argument entirely. How can I do this?
Missing argument for parameter 'alpha' in call. In fact, I still have to find a way to implement theneverAlphacode into myUIColorfunctions. Thanks!neverAlpha, but is fordeepSkyBlue?