Specify accent color in style

This commit is contained in:
Christoph Hagen
2023-08-23 16:17:34 +02:00
parent cd37df22bf
commit c9ab73c4ae
10 changed files with 48 additions and 25 deletions

View File

@ -13,7 +13,7 @@ struct LeftImageLabel: View {
}
var body: some View {
HStack(spacing: 0) {
HStack(alignment: .firstTextBaseline, spacing: 0) {
Text(text)
Image(systemSymbol: systemSymbol)
.frame(width: 20)

View File

@ -13,9 +13,9 @@ struct RightImageLabel: View {
}
var body: some View {
HStack(spacing: 0) {
HStack(alignment: .firstTextBaseline, spacing: 3) {
Image(systemSymbol: systemSymbol)
.frame(width: 20)
.aspectRatio(1, contentMode: .fill)
Text(text)
}
}