fix: color issues

This commit is contained in:
greyder 2022-06-05 11:23:39 +08:00
parent 9cc9d5224a
commit 3b0834a87a
1 changed files with 3 additions and 2 deletions

View File

@ -5,15 +5,16 @@
// Created by Yhanco Grey Esteban on 6/5/22. // Created by Yhanco Grey Esteban on 6/5/22.
// //
import UIKit
import SwiftUI import SwiftUI
public extension Color { public extension Color {
static var background: Color { static var background: Color {
return Color("Background") return Color(UIColor(named: "Background", in: .module, compatibleWith: .current)!)
} }
static var foreground: Color { static var foreground: Color {
return Color("Foreground") return Color(UIColor(named: "Foreground", in: .module, compatibleWith: .current)!)
} }
} }