UIColor extension ambiguous when using Hue
codefiesta opened this issue · comments
Code Fiesta commented
Popular UIColor library Hue uses the UIColor(hex:) constructor in an extension, leading to a conflict with the convenience init in the UIColor extension.
public extension UIColor { convenience init(hex: String) {
Raising the error:
Ambiguous use of init(hex:)
Please remove or consider making Hue a dependency or using a non-conflicting category convenience method?
Saurabh Rane commented
Just curious, are you using Hue for other functions in your code?
Code Fiesta commented
Yes, we are using the gradient features provided in Hue as well.
Saurabh Rane commented
Please use the new release 1.3. I have removed the convenience method from library.