diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift b/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift index 63073089..e5d56cab 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift @@ -34,7 +34,7 @@ extension View { func detailForegroundColor() -> some View { return self - .foregroundColor(Color.gray) + .foregroundColor(Color.secondary) } func detailFont() -> some View { @@ -51,6 +51,23 @@ extension View { } +public extension Color { + static let lightText = Color(UIColor.lightText) + static let darkText = Color(UIColor.darkText) + + static let label = Color(UIColor.label) + static let secondaryLabel = Color(UIColor.secondaryLabel) + static let tertiaryLabel = Color(UIColor.tertiaryLabel) + static let quaternaryLabel = Color(UIColor.quaternaryLabel) + + static let systemBackground = Color(UIColor.systemBackground) + static let secondarySystemBackground = Color(UIColor.secondarySystemBackground) + static let tertiarySystemBackground = Color(UIColor.tertiarySystemBackground) + + // There are more.. +} + + extension Alert.Button { public static func ok(_ action: (() -> Void)? = {}) -> Alert.Button {