From 5ad7194085b394ff0c38047a61e39d01c32b7c39 Mon Sep 17 00:00:00 2001 From: Ari Date: Sun, 24 Jul 2022 01:58:03 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20[feat]=20=EB=8C=80=EC=8B=9C?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=EC=97=90=20=EB=AE=A4=EC=A7=81=20=ED=94=8C?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=96=B4=20=EC=84=B9=EC=85=98=EC=9D=84=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20#20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dashboard/Coordinator/DashboardCoordinator.swift | 3 ++- .../ViewControllers/DashboardViewController.swift | 12 ++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/Coordinator/DashboardCoordinator.swift b/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/Coordinator/DashboardCoordinator.swift index 61fd3094..6880b778 100644 --- a/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/Coordinator/DashboardCoordinator.swift +++ b/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/Coordinator/DashboardCoordinator.swift @@ -42,7 +42,8 @@ final class DashboardCoordinator: Coordinator { userInfoVM: UserInfoSectionViewModel(), tasksVM: TodaysTasksSectionViewModel(coordinator: self), villagersVM: VillagersSectionViewModel(coordinator: self), - progressVM: CollectionProgressSectionViewModel(coordinator: self) + progressVM: CollectionProgressSectionViewModel(coordinator: self), + musicPlayerVM: MusicPlayerViewModel(coordinator: self) ) rootViewController.addChild(viewController) } diff --git a/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/ViewControllers/DashboardViewController.swift b/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/ViewControllers/DashboardViewController.swift index 852418bd..7af766a6 100644 --- a/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/ViewControllers/DashboardViewController.swift +++ b/Animal-Crossing-Wiki/Animal-Crossing-Wiki/Dashboard/ViewControllers/DashboardViewController.swift @@ -52,7 +52,8 @@ class DashboardViewController: UIViewController { userInfoVM: UserInfoSectionViewModel, tasksVM: TodaysTasksSectionViewModel, villagersVM: VillagersSectionViewModel, - progressVM: CollectionProgressSectionViewModel + progressVM: CollectionProgressSectionViewModel, + musicPlayerVM: MusicPlayerViewModel ) { let userInfoSection = SectionView( title: "My Island".localized, @@ -74,7 +75,14 @@ class DashboardViewController: UIViewController { iconName: "chart.pie.fill", contentView: CollectionProgressView(viewModel: progressVM) ) - sectionsScrollView.addSection(userInfoSection, tasksSection, villagersSection, progressSection) + let musicPlayerSection = SectionView( + title: "Music Player".localized, + iconName: "music.quarternote.3", + contentView: MusicPlayerView(viewModel: musicPlayerVM) + ) + sectionsScrollView.addSection( + userInfoSection, tasksSection, villagersSection, progressSection, musicPlayerSection + ) } func bind(to viewModel: DashboardViewModel) {