19 lines
428 B
Swift
19 lines
428 B
Swift
import SwiftUI
|
|
|
|
struct ProBadge: View {
|
|
var body: some View {
|
|
Text("PRO")
|
|
.font(.system(size: 10, weight: .semibold))
|
|
.foregroundColor(.white)
|
|
.padding(.horizontal, 6)
|
|
.padding(.vertical, 2)
|
|
.background(
|
|
RoundedRectangle(cornerRadius: 4)
|
|
.fill(Color.blue.opacity(0.8))
|
|
)
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ProBadge()
|
|
} |