|
@@ -5,7 +5,8 @@ struct QuickActionChip: View {
|
|
|
let isSelected: Bool
|
|
let isSelected: Bool
|
|
|
let onSelect: () -> Void
|
|
let onSelect: () -> Void
|
|
|
|
|
|
|
|
- private let iconBadgeSize: CGFloat = 26
|
|
|
|
|
|
|
+ private let iconBadgeWidth: CGFloat = 34
|
|
|
|
|
+ private let iconBadgeHeight: CGFloat = 26
|
|
|
private let iconSize: CGFloat = 13
|
|
private let iconSize: CGFloat = 13
|
|
|
|
|
|
|
|
var body: some View {
|
|
var body: some View {
|
|
@@ -42,7 +43,7 @@ struct QuickActionChip: View {
|
|
|
private var iconBadge: some View {
|
|
private var iconBadge: some View {
|
|
|
RoundedRectangle(cornerRadius: 8, style: .continuous)
|
|
RoundedRectangle(cornerRadius: 8, style: .continuous)
|
|
|
.fill(iconBadgeBackground)
|
|
.fill(iconBadgeBackground)
|
|
|
- .frame(width: iconBadgeSize, height: iconBadgeSize)
|
|
|
|
|
|
|
+ .frame(width: iconBadgeWidth, height: iconBadgeHeight)
|
|
|
.overlay {
|
|
.overlay {
|
|
|
Image(systemName: action.symbol)
|
|
Image(systemName: action.symbol)
|
|
|
.font(.system(size: iconSize, weight: .semibold))
|
|
.font(.system(size: iconSize, weight: .semibold))
|