20 lines
518 B
Swift
20 lines
518 B
Swift
import SwiftUI
|
|
|
|
// 盲盒数量徽标
|
|
struct BlindCountBadge: View {
|
|
let text: String
|
|
|
|
var body: some View {
|
|
Text(text)
|
|
.font(Typography.font(for: .body, family: .quicksandBold))
|
|
.foregroundColor(.white)
|
|
.padding(.horizontal, 12)
|
|
.padding(.vertical, 8)
|
|
.background(
|
|
Capsule()
|
|
.fill(Color.black)
|
|
.shadow(color: Color.black.opacity(0.15), radius: 4, x: 0, y: 2)
|
|
)
|
|
}
|
|
}
|