vicc / chameleon

Color framework for Swift & Objective-C (Gradient colors, hexcode support, colors from images & more).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

commented

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.
image
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 .

commented

'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"