Skip to content

Commit f5813c8

Browse files
mbrandonwmluisbrown
authored andcommitted
Update VoiceMemos.swift
(cherry picked from commit 008af25c2af65a21ea535010e2f32fc6559974c8)
1 parent 382799e commit f5813c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/VoiceMemos/VoiceMemos/VoiceMemos.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@ struct VoiceMemos_Previews: PreviewProvider {
244244
),
245245
reducer: voiceMemosReducer,
246246
environment: VoiceMemosEnvironment(
247+
// NB: AVAudioRecorder and AVAudioPlayer doesn't work in previews, so use mocks
248+
// that simulate their behavior in previews.
247249
audioPlayer: .mock,
248-
// NB: AVAudioRecorder doesn't work in previews, so we stub out the dependency here.
249250
audioRecorder: .mock,
250251
mainRunLoop: QueueScheduler.main,
251252
openSettings: {},

0 commit comments

Comments
 (0)