diff --git a/MinGenie/MinGenie/Home/HomeView.swift b/MinGenie/MinGenie/Home/HomeView.swift index e28c7a1..c48ea31 100644 --- a/MinGenie/MinGenie/Home/HomeView.swift +++ b/MinGenie/MinGenie/Home/HomeView.swift @@ -27,22 +27,23 @@ struct HomeView: View { NavigationView { // 검색어 없을 때 if searchTerm.isEmpty { - Color.BG.main.ignoresSafeArea() - .overlay { - VStack(spacing: 0) { - if let tracks = selectedMusicDataModel.storedTracks { - MusicItemRowView(itemRowTitle: "지난 선곡", tracks: tracks) - .padding(.bottom, 30) - } - - if let tracks = musicPersonalRecommendationModel.personalRecommendationTracks { - MusicItemRowView(itemRowTitle: "맞춤 랜덤 선곡", tracks: tracks) - } - - Spacer() + ZStack { + Color.BG.main.ignoresSafeArea() + + VStack(spacing: 0) { + if let tracks = selectedMusicDataModel.storedTracks { + MusicItemRowView(itemRowTitle: "지난 선곡", tracks: tracks) + .padding(.bottom, 30) } - .navigationTitle("오늘의 첫곡 🎧") + + if let tracks = musicPersonalRecommendationModel.personalRecommendationTracks { + MusicItemRowView(itemRowTitle: "맞춤 랜덤 선곡", tracks: tracks) + } + + Spacer() } + .navigationTitle("오늘의 첫곡 🎧") + } } else { // 검색어 있을 때 MusicSearchView(searchTerm: $searchTerm)