From 545c15cd01deaa24258944ce485c560148116fb3 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 29 Nov 2022 10:20:45 +0800 Subject: [PATCH] Make labels less rounded --- apple/OmnivoreKit/Sources/Views/TextChip.swift | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Views/TextChip.swift b/apple/OmnivoreKit/Sources/Views/TextChip.swift index 482fb8040..fab31a816 100644 --- a/apple/OmnivoreKit/Sources/Views/TextChip.swift +++ b/apple/OmnivoreKit/Sources/Views/TextChip.swift @@ -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 {