Closed lumaxis closed 7 years ago
I think this is not exactly a problem of HexColors instead it's the Swift API Transformation mentioned in here (https://swift.org/blog/swift-api-transformation/).
Swift 2.2 is dropping the with8Bit
or some think we know already from UIImage UIImage(name:)
instead of UIImage(imageWithName:)
.
Did you tried it without the with8Bit prefix?
@mRs- Yep, I tried but the annoying thing is that the Swift compiler insists on removing red:
too so only something like this works: UIColor(246, green: 247, blue: 250)
Okay, that's not the expected way, there is some work needed. I try to fix this as soon as possible, but maybe you got this already and can hand in a pull request?
will be closed with https://github.com/mRs-/HexColors/tree/swift-3.0
With the switch to Swift 2.2, HexColors' Obj-C API is not correctly translated to Swift anymore: