Skip to content

Commit 37f8b97

Browse files
mbrandonwmluisbrown
authored andcommitted
Rename audioPlayerClient to audioPlayer.
(cherry picked from commit 253776d21a400fdc61f42202bf1ede84cd32ea4f) # Conflicts: # Examples/VoiceMemos/VoiceMemos/VoiceMemo.swift
1 parent cef2789 commit 37f8b97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Examples/VoiceMemos/VoiceMemos/VoiceMemo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ enum VoiceMemoAction: Equatable {
3737
}
3838

3939
struct VoiceMemoEnvironment {
40-
var audioPlayerClient: AudioPlayerClient
40+
var audioPlayer: AudioPlayerClient
4141
var mainRunLoop: DateScheduler
4242
}
4343

@@ -65,7 +65,7 @@ let voiceMemoReducer = Reducer<
6565
let start = environment.mainRunLoop.currentDate
6666

6767
async let playAudio: Void = send(
68-
.audioPlayerClient(TaskResult { try await environment.audioPlayerClient.play(url) })
68+
.audioPlayerClient(TaskResult { try await environment.audioPlayer.play(url) })
6969
)
7070

7171
for try await tick in environment.mainRunLoop.timer(interval: .milliseconds(500)) {

Examples/VoiceMemos/VoiceMemos/VoiceMemos.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let voiceMemosReducer = Reducer<VoiceMemosState, VoiceMemosAction, VoiceMemosEnv
5151
state: \.voiceMemos,
5252
action: /VoiceMemosAction.voiceMemo(id:action:),
5353
environment: {
54-
VoiceMemoEnvironment(audioPlayerClient: $0.audioPlayer, mainRunLoop: $0.mainRunLoop)
54+
VoiceMemoEnvironment(audioPlayer: $0.audioPlayer, mainRunLoop: $0.mainRunLoop)
5555
}
5656
),
5757
Reducer { state, action, environment in

0 commit comments

Comments
 (0)