Make labels less rounded

This commit is contained in:
Jackson Harper
2022-11-29 10:20:45 +08:00
parent 395b3d7ac7
commit 545c15cd01

View File

@ -78,20 +78,14 @@ public struct TextChip: View {
.font(.appCaptionBold)
.foregroundColor(textColor)
.lineLimit(1)
// .background(Capsule().fill(backgroundColor))
// .overlay(Capsule().stroke(borderColor, lineWidth: 1))
// .background(Rectangle()
// .stroke(borderColor, lineWidth: 1)
// .background(Rectangle().fill(backgroundColor))
// .cornerRadius(4)
// )
// .overlay(Rectangle().stroke(borderColor, lineWidth: 1).cornerRadius(4))
.background(backgroundColor)
.background(
RoundedRectangle(cornerRadius: 4)
.fill(backgroundColor)
)
.overlay(
RoundedRectangle(cornerRadius: 4)
.stroke(borderColor, lineWidth: 1)
)
.padding(1)
.overlay(alignment: .topTrailing) {
if checked {