We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 382799e commit f5813c8Copy full SHA for f5813c8
Examples/VoiceMemos/VoiceMemos/VoiceMemos.swift
@@ -244,8 +244,9 @@ struct VoiceMemos_Previews: PreviewProvider {
244
),
245
reducer: voiceMemosReducer,
246
environment: VoiceMemosEnvironment(
247
+ // NB: AVAudioRecorder and AVAudioPlayer doesn't work in previews, so use mocks
248
+ // that simulate their behavior in previews.
249
audioPlayer: .mock,
- // NB: AVAudioRecorder doesn't work in previews, so we stub out the dependency here.
250
audioRecorder: .mock,
251
mainRunLoop: QueueScheduler.main,
252
openSettings: {},
0 commit comments