From a9dcfaa3b926dc8e3d8e0b8e5fa33c5e47800bd2 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Wed, 23 Aug 2023 15:28:23 +1000 Subject: [PATCH] minor fix on placeholder text color --- SessionUIKit/Components/SessionTextField.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SessionUIKit/Components/SessionTextField.swift b/SessionUIKit/Components/SessionTextField.swift index 6752cadc9..621557c5d 100644 --- a/SessionUIKit/Components/SessionTextField.swift +++ b/SessionUIKit/Components/SessionTextField.swift @@ -27,7 +27,7 @@ public struct SessionTextField: View { if text.isEmpty { Text(placeholder) .font(.system(size: Values.smallFontSize)) - .foregroundColor(themeColor: .textSecondary) + .foregroundColor(themeColor: (error?.isEmpty == false) ? .danger : .textSecondary) } SwiftUI.TextField(