From 0dae6c6ac569136e568fab6ad7685dd246dc25c4 Mon Sep 17 00:00:00 2001 From: Jeon Jimin Date: Sat, 10 Jun 2023 15:46:37 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=EB=AF=B8=EB=94=94=EC=96=B4=20=ED=94=8C?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=96=B4=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 전달하는 팀명을 현재 선택한 팀이 아닌 노래 정보와 일치하는 팀명으로 전달하도록 변경 --- Halmap/Data/DataManager.swift | 2 +- Halmap/View/SongInformation/SongPlayerView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Halmap/Data/DataManager.swift b/Halmap/Data/DataManager.swift index 5c14109..96467da 100644 --- a/Halmap/Data/DataManager.swift +++ b/Halmap/Data/DataManager.swift @@ -33,10 +33,10 @@ class DataManager: ObservableObject { teamLists.forEach { teamName in fetchSong(team: teamName.rawValue, type: true) { songs in self.playerSongsAll[teamName.fetchTeamIndex()] = songs + self.setSongList(team: self.selectedTeam) } fetchSong(team: teamName.rawValue, type: false) { songs in self.teamSongsAll[teamName.fetchTeamIndex()] = songs - self.setSongList(team: self.selectedTeam) } } diff --git a/Halmap/View/SongInformation/SongPlayerView.swift b/Halmap/View/SongInformation/SongPlayerView.swift index 10459ac..629129e 100644 --- a/Halmap/View/SongInformation/SongPlayerView.swift +++ b/Halmap/View/SongInformation/SongPlayerView.swift @@ -89,7 +89,7 @@ struct SongPlayerView: View { audioManager.removePlayer() } .onAppear(){ - audioManager.AMset(song: song, selectedTeam: selectedTeam) + audioManager.AMset(song: song, selectedTeam: team) } .onReceive(timer) { _ in guard let player = AudioManager.instance.player else { return }