From d05a1b0a72a0ba1cd5240e32601dec66874b585a Mon Sep 17 00:00:00 2001 From: Anandu <47anandu007@gmail.com> Date: Fri, 1 Apr 2022 06:53:36 -0400 Subject: [PATCH] String length in CIColorExtension String.character.count is not available anymore in swift and the new way of doing that is by string.count. --- QRCode/CIColorExtension.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QRCode/CIColorExtension.swift b/QRCode/CIColorExtension.swift index 40b4435..44dd23b 100644 --- a/QRCode/CIColorExtension.swift +++ b/QRCode/CIColorExtension.swift @@ -29,7 +29,7 @@ public extension CIColor { var hexValue: CUnsignedLongLong = 0 if scanner.scanHexInt64(&hexValue) { - let length = rgba.characters.count + let length = rgba.count switch (length) { case 3: