Skip to content

Commit 18f4f2b

Browse files
committed
fix: ios crash
1 parent 049dec7 commit 18f4f2b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Camera/ContentView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ struct ContentView: View {
332332
}
333333
}
334334
.onAppear { model.requestPermissionsAndConfigure() }
335+
.onDisappear { model.stop() }
335336
.onChange(of: model.isRecording) { newValue in
336337
if newValue {
337338
withAnimation(.easeOut(duration: 0.2)) { showFilterPicker = false }

0 commit comments

Comments
 (0)