In #SwiftUI, there are `HierarchicalShapeStyle`s primary, secondary, tertiary, q...
Der Teilweise @teilweise@layer8.space
In #SwiftUI, there are `HierarchicalShapeStyle`s primary, secondary, tertiary, quaternary, and quinary.
You cannot use `.foregroundStyle(fieldValid ? .primary : .red)` because there is no `HierarchicalShapeStyle.red`.
Luckily there are `Color`s primary and secondary, so .foregroundStyle(fieldValid ? Color.primary : .red)` works.
Questions:
• Why are there no tertiary, quaternary, and quinary colors?
• Why is `.foreground(color: Color)` deprecated?
• Why is there no `.hierarchy(level: UInt)`?