wip
This commit is contained in:
24
Workouts/Utils/BadgeView.swift
Normal file
24
Workouts/Utils/BadgeView.swift
Normal file
@ -0,0 +1,24 @@
|
||||
//
|
||||
// BadgeView.swift
|
||||
// Workouts
|
||||
//
|
||||
// Created by rzen on 7/14/25 at 2:20 PM.
|
||||
//
|
||||
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct BadgeView: View {
|
||||
|
||||
var badge: Badge
|
||||
|
||||
var body: some View {
|
||||
Text("\(badge.text)")
|
||||
.bold()
|
||||
.padding([.leading,.trailing], 5)
|
||||
.background(badge.color)
|
||||
.foregroundColor(.white)
|
||||
.cornerRadius(4)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user