Xcode 11.1 issue
NehaVishnoi opened this issue · comments
After updating the Xcode version to 11.1 In ChameleonShorthand.swift file getting error Function produces expected type 'UIColor'; did you mean to call it with '()'?
After updating the Xcode version to 11.1 In ChameleonShorthand.swift file getting error Function produces expected type 'UIColor'; did you mean to call it with '()'?
I have the same issue with my project (Xcode 11.1)
I have the issue on Xcode11.1 too.
Thank you very much for all the time and hard work that has gone into creating this library! I've been trying to use it in a Swift course I'm doing on Udemy, and have run into the same error as people have mentioned above. Here is a screen shot of the error I'm getting.
Unfortunately I don't have the skills yet to contribute a fix, but hopefully someone with more experience can figure out how to make the code compatible with Xcode 11.1.
This branch worked for me:
pod 'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5'
same issue
This branch worked for me:
pod 'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5'
problem Solved .
'https://github.com/wowansm/Chameleon.git', wowansm -> 我玩SM 有点秀哦
pod 'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5' does not work fo me.
When trying
'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5'
I get the following warning
Enumeration value 'kCGColorSpaceModelXYZ' not handled in switch
If you are still getting the 49 issues on Xcode with "ChameleonFramework/Swift", I highly suggest that you use the objective c version of the library.
pod 'ChameleonFramework', '2.1.0'
However, you will need to add the below line in your bridging-header file.
#import "ChameleonFramework/Chameleon.h"