From 8939b1466dfc9fb5b32213a75f25ed8851b6aac6 Mon Sep 17 00:00:00 2001 From: sanghyeok-kim Date: Fri, 4 Aug 2023 08:13:10 +0900 Subject: [PATCH] =?UTF-8?q?#8=20feat:=20HomeCoordinator=EC=97=90=20showRin?= =?UTF-8?q?gtoneSelectScene=20=EB=A1=9C=EC=A7=81=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Coordinator/Home/DefaultHomeCoordinator.swift | 9 +++++++++ .../Coordinator/Home/HomeCoordinatorAction.swift | 1 + 2 files changed, 10 insertions(+) diff --git a/Multimer/Multimer/Presentation/Coordinator/Home/DefaultHomeCoordinator.swift b/Multimer/Multimer/Presentation/Coordinator/Home/DefaultHomeCoordinator.swift index ddcb99d..eb3c855 100644 --- a/Multimer/Multimer/Presentation/Coordinator/Home/DefaultHomeCoordinator.swift +++ b/Multimer/Multimer/Presentation/Coordinator/Home/DefaultHomeCoordinator.swift @@ -29,6 +29,8 @@ final class DefaultHomeCoordinator: HomeCoordinator { presentTimerCreateViewController(createdTimerRelay: createdTimerRelay) case .showTimerEditScene(let initialTimer, let editedTimerRelay): pushTimerEditViewController(initialTimer: initialTimer, editedTimerRelay: editedTimerRelay) + case .showRingtoneSelectScene(let selectedRingtoneRelay): + presentRingtoneSelectViewController(selectedRingtoneRelay: selectedRingtoneRelay) case .finishTimerCreateScene: navigationController.dismiss(animated: true) case .finishTimerEditScene: @@ -72,4 +74,11 @@ private extension DefaultHomeCoordinator { timerEditingViewController.reactor = timerEditingReactor navigationController.pushViewController(timerEditingViewController, animated: true) } + + func presentRingtoneSelectViewController(selectedRingtoneRelay: BehaviorRelay) { + let ringtoneSelectViewController = RingtoneSelectViewController() + let ringtoneSelectReactor = RingtoneSelectReactor(selectedRingtoneRelay: selectedRingtoneRelay) + ringtoneSelectViewController.reactor = ringtoneSelectReactor + navigationController.visibleViewController?.present(ringtoneSelectViewController, animated: true) + } } diff --git a/Multimer/Multimer/Presentation/Coordinator/Home/HomeCoordinatorAction.swift b/Multimer/Multimer/Presentation/Coordinator/Home/HomeCoordinatorAction.swift index db83ea5..730f7e4 100644 --- a/Multimer/Multimer/Presentation/Coordinator/Home/HomeCoordinatorAction.swift +++ b/Multimer/Multimer/Presentation/Coordinator/Home/HomeCoordinatorAction.swift @@ -11,6 +11,7 @@ enum HomeCoordinatorAction { case appDidStart case showTimerCreateScene(createdTimerRelay: PublishRelay) case showTimerEditScene(initialTimer: Timer, editedTimerRelay: PublishRelay) + case showRingtoneSelectScene(selectedRingtoneRelay: BehaviorRelay) case finishTimerCreateScene case finishTimerEditScene }