use Capsule rather than cornerRadius to create text chip

This commit is contained in:
Satindar Dhillon 2022-05-05 20:46:17 -07:00
parent 2f4f24dd6b
commit fd1e80b01d
2 changed files with 1 additions and 3 deletions

View file

@ -156,7 +156,6 @@ public struct GridCard: View {
}
Spacer()
}
.frame(height: 30)
.padding(.horizontal)
.padding(.bottom, 8)
}

View file

@ -26,8 +26,7 @@ public struct TextChip: View {
.font(.appFootnote)
.foregroundColor(color.isDark ? .white : .black)
.lineLimit(1)
.background(color)
.cornerRadius(cornerRadius)
.background(Capsule().fill(color))
}
}