35 lines
785 B
Swift
35 lines
785 B
Swift
//
|
||
// WorkoutLogCardView.swift
|
||
// Workouts
|
||
//
|
||
// Created by rzen on 7/22/25 at 9:56 PM.
|
||
//
|
||
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
||
//
|
||
|
||
import SwiftUI
|
||
|
||
struct WorkoutLogCardView: View {
|
||
let log: WorkoutLog
|
||
|
||
var body: some View {
|
||
VStack(alignment: .leading, spacing: 8) {
|
||
Text(log.exerciseName)
|
||
.font(.headline)
|
||
.lineLimit(1)
|
||
|
||
Text(log.status?.name ?? "Not Started")
|
||
.font(.caption)
|
||
.foregroundStyle(Color.accentColor)
|
||
|
||
HStack(spacing: 12) {
|
||
Text("\(log.weight) lbs")
|
||
|
||
Spacer()
|
||
|
||
Text("\(log.sets) × \(log.reps)")
|
||
}
|
||
}
|
||
}
|
||
}
|