Update CompactPriceView.swift

This commit is contained in:
Marcos Rodriguez Vélez 2024-11-20 08:58:59 -04:00 committed by GitHub
parent 41f8a22a21
commit c5ff1dd4a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ struct CompactPriceView: View {
Text(dataSource)
}
.font(.subheadline)
.foregroundColor(.secondary)
.foregroundColor(secondaryTextColor)
.multilineTextAlignment(.center)
.accessibilityElement(children: .combine)
}
@ -38,4 +38,9 @@ struct CompactPriceView: View {
var priceTextColor: Color {
colorScheme == .dark ? .cyan : .blue
}
}
// Improved secondary text color for better readability
var secondaryTextColor: Color {
colorScheme == .dark ? .white : .black
}
}