ARTICLE AD BOX
I'm using the timerInterval for the live activity however when the timer expires it doesn't change its status to completed state and I couldn't find a listener to call that
Text(timerInterval: Date()...context.state.endDate, countsDown: true, showsHours: false) struct CompactTrailingView: View { let context: ActivityViewContext<TimerAttributes> var body: some View { if context.hasExpired || context.state.isPaused { Text(context.formattedTime) .foregroundColor(.white) .font(.Widget.heading2Regular14.monospacedDigit()) .monospacedDigit() .multilineTextAlignment(.center) } else { Text(timerInterval: Date()...context.state.endDate, countsDown: true, showsHours: false) .frame(maxWidth: .minimum(50, 50), alignment: .leading) .foregroundColor(.white) .font(.Widget.heading2Regular14) .monospacedDigit() .multilineTextAlignment(.center) .transaction { $0.animation = nil } } } }