Skip to content

Commit

Permalink
✨ [feat] 대시보드에 뮤직 플레이어 섹션을 추가 #20
Browse files Browse the repository at this point in the history
  • Loading branch information
leeari95 committed Jul 23, 2022
1 parent 3bf262d commit 5ad7194
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit 5ad7194

Please sign in to comment.