To achieve this, you need to confirm the live activity target files for both the app and extension targets. Once you confirm, you can update your liveactivity in the perform method of appIntent. Your UI will be updated.
Post
Replies
Boosts
Views
Activity
This has worked for me
@available(iOS 14.0.0, *)
extension WidgetConfiguration
{
func contentMarginsDisabledIfAvailable() -> some WidgetConfiguration
{
if #available(iOS 17.0, *)
{
return self.contentMarginsDisabled()
}
else
{
return self
}
}
}