You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LeCountdown/LeCountdown/Views/Stopwatch/StopwatchDialView.swift

31 lines
725 B

//
// StopwatchDialView.swift
// LeCountdown
//
// Created by Laurent Morvillier on 01/02/2023.
//
import SwiftUI
struct StopwatchDialView: View {
@EnvironmentObject var conductor: Conductor
@ObservedObject var stopwatch: Stopwatch
var body: some View {
HStack {
Text(stopwatch.activity?.name?.uppercased() ?? "").foregroundColor(.black)
Spacer()
}
}
}
struct StopwatchDialView_Previews: PreviewProvider {
static var previews: some View {
StopwatchDialView(stopwatch: Stopwatch.fake(context: PersistenceController.preview.container.viewContext))
.environmentObject(Conductor.maestro)
.background(.cyan)
}
}