Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIColorExtension.swift 'characters' is deprecated: Please use String or Substring directly #57

Open
carlosguedes opened this issue Apr 23, 2018 · 1 comment

Comments

@carlosguedes
Copy link

Dear Alexander, how are you?

On swift 4 build IOS 11 I'm facing a warning that is relatively easy to solve:

Class: CIColorExtension.swift
Line 32:

if scanner.scanHexInt64(&hexValue) {
let length = rgba.characters.count

Warning Message: 'characters' is deprecated: Please use String or Substring directly

Thanks

@karthisiva
Copy link

use
let length = rgba.count

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants