import Foundation import SwiftUI import WidgetKit struct LiveActivityBGLabelLargeView: View { var context: ActivityViewContext var additionalState: LiveActivityAttributes.ContentAdditionalState var glucoseColor: Color var body: some View { HStack { if let trendArrow = context.state.direction { Text(context.state.bg) .fontWeight(.heavy) .font(.title) .foregroundStyle(context.isStale ? .secondary : glucoseColor) .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6)) + Text(trendArrow).foregroundStyle(context.isStale ? .secondary : glucoseColor) } else { Text(context.state.bg) .fontWeight(.heavy) .font(.title) .foregroundStyle(context.isStale ? .secondary : glucoseColor) .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6)) } } } }