From 5274bb348cc1116883d51142ae5f7a04f4dbb45b Mon Sep 17 00:00:00 2001 From: embeddedc <> Date: Wed, 26 Dec 2018 13:41:44 +0100 Subject: [PATCH] Small bugfix for macOS variant --- Colours.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Colours.swift b/Colours.swift index 3f21461..099a968 100644 --- a/Colours.swift +++ b/Colours.swift @@ -126,7 +126,7 @@ public extension Color { var b: CGFloat = 0 var a: CGFloat = 0 - if self.responds(to: #selector(UIColor.getHue(_:saturation:brightness:alpha:))) && self.cgColor.numberOfComponents == 4 { + if self.responds(to: #selector(Color.getHue(_:saturation:brightness:alpha:))) && self.cgColor.numberOfComponents == 4 { self.getHue(&h, saturation: &s, brightness: &b, alpha: &a) }