Skip to content

Commit c163960

Browse files
authored
dismiss live activity when navigation ends (#942)
1 parent 9b91e0a commit c163960

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apple/Sources/FerrostarSwiftUI/DynamicIsland/FerrostarWidgetProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class FerrostarWidgetProvider: WidgetProviding {
4242

4343
public func terminate() {
4444
Task {
45-
await activity?.end()
45+
await activity?.end(nil, dismissalPolicy: .immediate)
4646
lastUpdateDistance = nil
4747
}
4848
}

0 commit comments

Comments
 (0)