From 3b0834a87af078cb67045df97baba4470fc67e1d Mon Sep 17 00:00:00 2001 From: greyder Date: Sun, 5 Jun 2022 11:23:39 +0800 Subject: [PATCH] fix: color issues --- Sources/CoffeeUI/Color+Extension.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/CoffeeUI/Color+Extension.swift b/Sources/CoffeeUI/Color+Extension.swift index b71f476..340994f 100644 --- a/Sources/CoffeeUI/Color+Extension.swift +++ b/Sources/CoffeeUI/Color+Extension.swift @@ -5,15 +5,16 @@ // Created by Yhanco Grey Esteban on 6/5/22. // +import UIKit import SwiftUI public extension Color { static var background: Color { - return Color("Background") + return Color(UIColor(named: "Background", in: .module, compatibleWith: .current)!) } static var foreground: Color { - return Color("Foreground") + return Color(UIColor(named: "Foreground", in: .module, compatibleWith: .current)!) } }