| 1234567891011121314151617181920212223 |
- //
- // LiveActivityBGLabelView.swift
- // Trio
- //
- // Created by Cengiz Deniz on 17.10.24.
- //
- import Foundation
- import SwiftUI
- import WidgetKit
- struct LiveActivityBGLabelView: View {
- var context: ActivityViewContext<LiveActivityAttributes>
- var additionalState: LiveActivityAttributes.ContentAdditionalState
- var body: some View {
- Text(context.state.bg)
- .fontWeight(.bold)
- .font(.title3)
- .foregroundStyle(context.isStale ? .secondary : .primary)
- .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6))
- }
- }
|