yeahdongcn/UIColor-Hex-Swift

Swift 3 compatibility

phatmann opened this issue ยท 4 comments

Xcode 8 is out! Time to merge in Swift 3 branch.

There is one issue I met: http://stackoverflow.com/questions/39442664/open-override-var-description-string-not-called-in-swift-3, after I fix this I will do merge.

Could you help with this?

Answer posted:

You cannot override a method in an extension. You would need to use a subclass. The compiler should be complaining.

It might have worked in Swift 2.x, but that was not correct behavior.

Tony

On Sep 14, 2016, at 5:47 AM, R0CKSTAR notifications@github.com wrote:

This is one issue I met: http://stackoverflow.com/questions/39442664/open-override-var-description-string-not-called-in-swift-3 http://stackoverflow.com/questions/39442664/open-override-var-description-string-not-called-in-swift-3, after I fix this I will do merge.

Could you help with this?

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #41 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AACNMqAS2Fu1Ggz5IV04gFoKvPPZdy5pks5qp-zbgaJpZM4J8s7Y.

Don't forget Swift 2.3 support. Some users won't be able to make the jump to Swift 3.0 immediately and will have to rely on a Swift 2.3 compatible version at first.

Done, tag 2.3 for Swift 2.3, tag 3.0.1 for Swift 3.0.