I have a live activity and dynamic island widget with text component timer. Widget is using ActivityConfiguration and how can i stop the timer or close the widget once it reaches specified date?
This is how the timer is implemented
ActivityConfiguration(for: ExtensionAttributes.self) { context in
Text(context.attributes.date, style: .timer)
}
And when the date reaches date + 2 hours, i need to stop this timer or remove the widget. How can i achieve this?