ranesr / SwiftIcons

🎢Swift Library for Font Icons - ★ this library

Home Page:https://ranesr.github.io/SwiftIcons/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIColor extension ambiguous when using Hue

codefiesta opened this issue · comments

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?

Just curious, are you using Hue for other functions in your code?

Yes, we are using the gradient features provided in Hue as well.

Please use the new release 1.3. I have removed the convenience method from library.